cvs: docweb /include lib_general.inc.php
| From: | Sean Coates | Date: | Sat, 11 Sep 2004 23:24:11 +0000 |
| Subject: | cvs: docweb /include lib_general.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-280@lists.php.net to get a copy of this message | ||
sean Sat Sep 11 19:24:11 2004 EDT
Modified files:
/docweb/include lib_general.inc.php
Log:
get_insite_url bug
http://cvs.php.net/diff.php/docweb/include/lib_general.inc.php?r1=1.20&r2=1.21&ty=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.20 docweb/include/lib_general.inc.php:1.21
--- docweb/include/lib_general.inc.php:1.20 Sat Sep 11 19:17:14 2004
+++ docweb/include/lib_general.inc.php Sat Sep 11 19:24:11 2004
@@ -18,7 +18,7 @@
| Gabor Hojtsy <goba@php.net> |
| Sean Coates <sean@php.net> |
+----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.20 2004/09/11 23:17:14 sean Exp $
+$Id: lib_general.inc.php,v 1.21 2004/09/11 23:24:11 sean Exp $
*/
error_reporting(E_ALL);
@@ -259,7 +259,7 @@
if ($lang != $GLOBALS['defaultLanguage']) {
$ret .= "$lang/";
}
- return $ret . ($path == '/' ? '' : $path);
+ return $ret . ($path == '/' ? '' : ltrim($path, '/'));
}
function get_resource_url($url = '')