cvs: docweb /include lib_general.inc.php

[email protected] ("Vincent Gevers")
Newsgroups php.doc.web
Message-ID <cvsvincent1123754055@cvsserver>
vincent		Thu Aug 11 05:54:15 2005 EDT

  Modified files:              
    /docweb/include	lib_general.inc.php 
  Log:
  The /user/username is a special redirect.
  This will allow switching project and language one every page, except
  the user proflie
  
  
http://cvs.php.net/diff.php/docweb/include/lib_general.inc.php?r1=1.47&r2=1.48&ty=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.47 docweb/include/lib_general.inc.php:1.48
--- docweb/include/lib_general.inc.php:1.47	Thu Aug 11 05:11:11 2005
+++ docweb/include/lib_general.inc.php	Thu Aug 11 05:54:09 2005
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <[email protected]>                        |
 |                   Sean Coates <[email protected]>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.47 2005/08/11 09:11:11 mazzanet Exp $
+$Id: lib_general.inc.php,v 1.48 2005/08/11 09:54:09 vincent Exp $
 */
 
 require_once dirname(__FILE__) . '/lib_auth.inc.php';
@@ -153,7 +153,7 @@
     if (!isset($project))      { $project = SITE;  }
     if (!isset($lang))         { $lang    = LANGC; }
     if (!isset($path))         { $path    = URI;   }
-    if ($project != SITE)      { $path    = '/';   }
+    if ($path == '/users.php') { $path    = '/';   }
     if ($path == '/index.php') { $path    = '/';   }
 
     $ret = '/';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.