[pLog-svn] r1773 - in plog/branches/plog-1.0.1: . class/net

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Apr 6 21:26:30 GMT 2005


Author: oscar
Date: 2005-04-06 21:26:30 +0000 (Wed, 06 Apr 2005)
New Revision: 1773

Modified:
   plog/branches/plog-1.0.1/.htaccess
   plog/branches/plog-1.0.1/class/net/prettyrequestgenerator.class.php
   plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php
Log:
fixed issue 407 (http://bugs.plogworld.net/view.php?id=407) How come we never noticed this one...? It was very easy to fix but a really stupid oversight from our side.

Modified: plog/branches/plog-1.0.1/.htaccess
===================================================================
--- plog/branches/plog-1.0.1/.htaccess	2005-04-06 20:59:33 UTC (rev 1772)
+++ plog/branches/plog-1.0.1/.htaccess	2005-04-06 21:26:30 UTC (rev 1773)
@@ -106,10 +106,14 @@
  ForceType application/x-httpd-php
 </Files>
 
-ErrorDocument 401 /plog/error.php
-ErrorDocument 403 /plog/error.php
-ErrorDocument 404 /plog/error.php
+<Files user>
+ ForceType application/x-httpd-php
+</Files>
 
+ErrorDocument 401 /plog-1.0.1/error.php
+ErrorDocument 403 /plog-1.0.1/error.php
+ErrorDocument 404 /plog-1.0.1/error.php
 
 
 
+

Modified: plog/branches/plog-1.0.1/class/net/prettyrequestgenerator.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/prettyrequestgenerator.class.php	2005-04-06 20:59:33 UTC (rev 1772)
+++ plog/branches/plog-1.0.1/class/net/prettyrequestgenerator.class.php	2005-04-06 21:26:30 UTC (rev 1773)
@@ -134,14 +134,13 @@
          * Returns a link to only the articles of the user
          *
          * @param user The user whose posts we would like to see
-         * @param category Optionally, we can specify an ArticleCategory object
          * @return A string containing the right url to only the posts of the user.
          * @see UserInfo
          * @see ArticleCategory
          */
-        function postUserLink( $user, $category = null )
+        function postUserLink( $user )
         {
-            $userLink = $this->getBaseUrl()."/user/".$user->getId();
+            $userLink = $this->getBaseUrl()."/user/".$this->_blogInfo->getId()."/".$user->getId();
 
             return $userLink;
         }

Modified: plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php	2005-04-06 20:59:33 UTC (rev 1772)
+++ plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php	2005-04-06 21:26:30 UTC (rev 1773)
@@ -67,15 +67,16 @@
                     }
                     $result["op"] = "RssAction";
                     break;
-                case "linktracker":
-                	$result["blogId"] = $params[count($params)-1];
-                    $result["op"] = "LinkTracker";
-                    break;
                 case "archives":
                 	$date = $params[count($params)-1];
                     $result["op"] = "Default";
                     $result["Date"] = $date;
                     break;
+                case "user":
+                	$userId = $params[count($params)-1];
+                    $result["userId"] = $userId;
+                    $result["op"] = "Default";
+                    break;                    
                 case "category":
                 	$categoryId = $params[count($params)-1];
                     $result["postCategoryId"] = $categoryId;




More information about the pLog-svn mailing list