------------------------------------------------------------
revno: 864
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Wed 2011-06-22 07:41:35 +0200
message:
  widget.php corrected
modified:
  src/libs/widgets.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'src/libs/widgets.php'
--- src/libs/widgets.php	2011-06-21 21:47:15 +0000
+++ src/libs/widgets.php	2011-06-22 05:41:35 +0000
@@ -1081,9 +1081,11 @@
 			" FROM aiki_widgets ".
 			" WHERE father_widget=$father and is_active=1 and ".
 			" (widget_site='$site' or widget_site ='aiki_shared' or widget_site ='default') and ".
-			" (display_urls LIKE '%|$search|%' OR display_urls = '|*|' OR 
-			   display_urls LIKE '%|$search/%') AND ".
-			" kill_urls <> '|$search|'" .   
+			" (display_urls LIKE '%$search%' OR display_urls = '*' )" .
+			   // until display_urls and kill_urls don't have | as separator
+			   // this don't work
+			   // display_urls LIKE '%|$search/%') AND ".
+			   //" kill_urls <> '|$search|'" .   
 			" ORDER BY  display_order, id";
          return $db->get_results($SQL);
 	}	

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to