https://bugzilla.wikimedia.org/show_bug.cgi?id=65432
Bug ID: 65432
Summary: PHP notice: Undefined Offset: 1
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: DataTypes
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
vendor/data-values/data-types/js/resources.php on line 19
vendor/data-values/javascript/lib/resources.php on line 16
vendor/data-values/javascript/src/resources.php on line 16
vendor/data-values/javascript/src/valueFormatters/resources.php on line 15
vendor/data-values/javascript/src/valueParsers/resources.php on line 16
This is the result of duplicate code in these 5 files that explodes a path
assuming a delimiter that contains "extensions". Since composer, the install
path is no longer in the extensions directory, but in $vendorDir.
Problem code:
return call_user_func( function() {
$remoteExtPathParts = explode(
DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR, __DIR__, 2
);
$moduleTemplate = array(
'localBasePath' => __DIR__,
'remoteExtPath' => $remoteExtPathParts[1],
);
--
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