[pLog-svn] r3960 - plog/branches/lifetype-1.1.1/class/net

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Sep 13 15:52:45 GMT 2006


Author: oscar
Date: 2006-09-13 15:52:45 +0000 (Wed, 13 Sep 2006)
New Revision: 3960

Modified:
   plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php
Log:
fixed mantis issue 1037 (http://bugs.lifetype.net/view.php?id=1037) -- pager not working in search engine friendly URLs. I've modified the blogLink method to return /blog/X instead of /X for blog links because that was the only way to get things like /blog/X/page/Y to work (/X/page/Y wouldn't work) This was not the same format returned by this method in 1.1 but although different, old URLs will not be broken.


Modified: plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php
===================================================================
--- plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php	2006-09-13 10:36:47 UTC (rev 3959)
+++ plog/branches/lifetype-1.1.1/class/net/prettyrequestgenerator.class.php	2006-09-13 15:52:45 UTC (rev 3960)
@@ -159,12 +159,7 @@
           }
           else {
                 // if not, we need some additional logic
-    			$disableApacheErrorHandler = $config->getValue( "disable_apache_error_handler" );
-    			if( $disableApacheErrorHandler )
-    				$path = "/blog/";
-    			else
-    				$path = "/";
-				
+    		$path = "/blog/";
 		
                 if( $blogInfo == null ) {
                     if( $config->getValue( "pretty_urls_force_use_username" )) {
@@ -387,7 +382,7 @@
 			}
 			else {
 				// if none of the above, we should at least get a link to the blog!
-				$url = $this->blogLink()."/".$this->_blogInfo->getId();
+				$url = $this->blogLink();
 			}		
 			
 			$pageFormat = "/page/";



More information about the pLog-svn mailing list