cvs: docweb /include init.inc.php

[email protected] ("Vincent Gevers")
Newsgroups php.doc.web
Message-ID <cvsvincent1116601135@cvsserver>
vincent		Fri May 20 10:58:55 2005 EDT

  Modified files:              
    /docweb/include	init.inc.php 
  Log:
  make sure we don't create // links on the main page, it breaks firefox...
  
  
http://cvs.php.net/diff.php/docweb/include/init.inc.php?r1=1.10&r2=1.11&ty=u
Index: docweb/include/init.inc.php
diff -u docweb/include/init.inc.php:1.10 docweb/include/init.inc.php:1.11
--- docweb/include/init.inc.php:1.10	Thu Feb 17 08:23:57 2005
+++ docweb/include/init.inc.php	Fri May 20 10:58:54 2005
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <[email protected]>                        |
 |                   Sean Coates <[email protected]>                         |
 +----------------------------------------------------------------------+
-$Id: init.inc.php,v 1.10 2005/02/17 13:23:57 nlopess Exp $
+$Id: init.inc.php,v 1.11 2005/05/20 14:58:54 vincent Exp $
 */
 
 error_reporting(E_ALL);
@@ -56,10 +56,10 @@
         $baseURL[] = $language;
     }
 
-    $baseURL = isset($baseURL) ? implode('/', $baseURL) : '';
+    $baseURL = isset($baseURL) ? '/' . implode('/', $baseURL) : '';
 
     // actually define the constant
-    define('BASE_URL', '/' . $baseURL);
+    define('BASE_URL', $baseURL);
 
 }
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.