includes/namespaces/default.php
changeset 1108 c1be67a50d81
parent 1105 0e46639fd408
child 1168 277a9cdead3e
--- a/includes/namespaces/default.php	Wed Aug 26 13:43:11 2009 -0400
+++ b/includes/namespaces/default.php	Wed Aug 26 23:25:39 2009 -0400
@@ -533,11 +533,13 @@
     }
   }
   
-  public function error_404($userpage = false)
+  public function error_404()
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
     global $lang, $output;
     
+    $userpage = $this->namespace == 'User';
+    
     @header('HTTP/1.1 404 Not Found');
     
     $msg = ( $pp = $paths->sysmsg('Page_not_found') ) ? $pp : '{STANDARD404}';