------------------------------------------------------------
revno: 918
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Fri 2011-10-21 16:23:18 +0200
message:
  pretty sustitution corrected
modified:
  src/libs/aiki.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/aiki.php'
--- src/libs/aiki.php	2011-10-18 16:26:01 +0000
+++ src/libs/aiki.php	2011-10-21 14:23:18 +0000
@@ -404,11 +404,11 @@
 				
 		}
 				
-		if ($pretty) {
+		if (!$pretty) {
 			/* TODO improve this*/		
 			$text = preg_replace(
-				'/href\=\"\[root\](.*)\"/U',
-				'href="[root]?pretty=\\1"', 
+				'/<a([^>]*)href\s*=\s*(["\'])\[root\](.*)\\2/U',
+				'<a\\1href=\\2[root]?pretty=\\3\\2', 
 				$text);
 		}
 		

_______________________________________________
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