https://bugzilla.wikimedia.org/show_bug.cgi?id=33120

Daniel Friesen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mediawiki-bugs@nadir-seen-f
                   |                            |ire.com
         Resolution|                            |WONTFIX

--- Comment #2 from Daniel Friesen <[email protected]> 
2011-12-14 19:55:25 UTC ---
The fact that substr is being used when dirname trivially does what the author
was actually intending is definitely messed up.

However that doesn't mean this isn't messed up. We're trying to move AWAY from
dynamic auto detection like this. It messes up in edge cases; It breaks on cli
scripts (likely why our installer now fills out $wgServer instead of
auto-detecting it all the time). This kind of thing will break on any non-root
entrypoint, eg: One defined by an extension (something I'm actually trying to
make easier to do, not extremely fragile and easy to break).

In the end the default for $wgScriptPath is nothing but a worthless dummy
value, we could probably just set it to null for all it matters. $wgScriptPath
should ALWAYS be defined inside LocalSettings.php

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to