Menu

#117 Incorrect behaviour running in / dir.

PHP_error
open
7
2012-10-11
2002-04-24
No

When the wiki directory is in fact "/" we get image
links to relative urls such as
"//themes/default/images/logo.png" - these don't work
with either IE or Mozilla. The following code in
config.php should fix all that:


if (!defined('DATA_PATH'))
if (dirname(SCRIPT_NAME) == "/")
define('DATA_PATH', "");
else
define('DATA_PATH', dirname(SCRIPT_NAME));


Also, there ought to be a comment in the default
index.php to the effect that if you are running from
the main webserver directory you should set DATA_PATH
to an empty string.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.