https://bugzilla.wikimedia.org/show_bug.cgi?id=46006
Web browser: ---
Bug ID: 46006
Summary: $wgExtensionAssetsPath is empty (but should not) when
it is used in an extension. Wrong place in
includes/setup.php ?
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
See https://gerrit.wikimedia.org/r/#/c/53009/
Some developers proposed to me
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/OpenID.git;a=commitdiff;h=61d5807ea49252683c04408c34913952049a26c8
--- a/OpenID.php
+++ b/OpenID.php
@@ -46,7 +46,7 @@ $wgOpenIDHideOpenIDLoginLink = false;
* Location of the OpenID login logo. You can copy this to your server if you
* want.
*/
-$wgOpenIDLoginLogoUrl = $wgScriptPath .
'/extensions/OpenID/skin/icons/openid-inputicon.png';
+$wgOpenIDLoginLogoUrl = $wgExtensionAssetsPath .
'/OpenID/skin/icons/openid-inputicon.png';
This is empty in all my installations, also on the instances on wmflabs which
are standards.
It's not clear, what is happening, and I think, the setup of this variable in
core in includes/setup.php is substantially >> wrong << at this place in core.
https://gerrit.wikimedia.org/r/#/c/53009/ comment to patch set 2
I ask you, as an expert, can you try -- in your code just BEFORE you include
the extension add three lines and tell me if your browser shows the correct
path - or nothing - when navigating to your wiki:
### $wgExtensionAssetsPath = "$wgScriptPath/extensions";
echo $wgExtensionAssetsPath; // We need this because wfDebug() is not working
at this stage !!
die();
require_once( "$IP/extensions/OpenID/OpenID.php" );
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l