[pLog-svn] r7003 - plog/branches/lifetype-1.2/class/net

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Jul 30 18:51:39 EDT 2010


Author: jondaley
Date: 2010-07-30 18:51:39 -0400 (Fri, 30 Jul 2010)
New Revision: 7003

Modified:
   plog/branches/lifetype-1.2/class/net/customurlhandler.class.php
Log:
make fallback URL more picky - it is a fallback URL after all, and shouldn't match just anything.  Also fixed old resource preview formats.  A blank result makes it match any old URL (like /blog) and then the rest of the system does weird things since it thinks it is a resource from then on...

Modified: plog/branches/lifetype-1.2/class/net/customurlhandler.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/customurlhandler.class.php	2010-07-30 22:49:18 UTC (rev 7002)
+++ plog/branches/lifetype-1.2/class/net/customurlhandler.class.php	2010-07-30 22:51:39 UTC (rev 7003)
@@ -62,7 +62,7 @@
 			// "search engine friendly" url
 			$this->_fallback = Array( "permalink_format" => $path."/post/{blogid}/{postid}",
 									 "category_link_format" => $path."/category/{blogid}/{catid}",
-									 "blog_link_format" => $path."/{blogid}",
+									 "blog_link_format" => $path."/{blogid}$",
 									 "archive_link_format" => $path."/archives/{blogid}/{year}/{month}/{day}",
 									 "user_posts_link_format" => $path."/user/{blogid}/{userid}",
 									 "post_trackbacks_link_format" => $path."/trackbacks/{blogid}/{postid}",
@@ -70,8 +70,8 @@
 									 "album_link_format" => $path."/album/{blogid}/{albumid}",
 									 "resource_link_format" => $path."/resource/{blogid}/{resourceid}",
 									 "resource_download_link_format" => $path."/get/{blogid}/{resourceid}",
-									 "resource_preview_link_format" => "",  // this one does not exist
-									 "resource_medium_size_preview_link_format" => "" ); // this one does not exist either
+									 "resource_preview_link_format" => "!INVALID_LIFETYPE_URL",  // this one does not exist
+									 "resource_medium_size_preview_link_format" => "!INVALID_LIFETYPE_URL" ); // this one does not exist either
 		}
 		
 		/**
@@ -144,7 +144,6 @@
 			
 			// put the parameter back as a parameter
 			$this->_params["page"] = $page;
-						
 			return( true );
 		}
 		



More information about the pLog-svn mailing list