https://bugzilla.wikimedia.org/show_bug.cgi?id=47098
Web browser: ---
Bug ID: 47098
Summary: unspecified globals
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Validator
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Please declare all globals used or created in Validator.php. When Validator is
included within a function rather than at file-scope, then the globals are not
being created/referenced correctly. Here's what I added to my version .5
Validator.php to make it work in a wikifarm:
global $wgAPIListModules, $wgAPIModules, $wgActions, $wgAjaxExportList,
$wgAutoloadClasses,
$wgAvailableRights, $wgDefaultUserOptions, $wgEditPageFrameOptions,
$wgExtensionAliasesFiles,
$wgExtensionAssetsFullPath, $wgExtensionAssetsPath, $wgExtensionCredits,
$wgExtensionFunctions,
$wgExtensionMessagesFiles, $wgExtraNamespaces, $wgGroupPermissions,
$wgHooks, $wgJobClasses,
$wgLanguageCode, $wgLogActions, $wgLogHeaders, $wgLogNames, $wgLogTypes,
$wgNamespacesWithSubpages,
$wgParserTestFiles, $wgReservedUsernames, $wgResourceModules,
$wgSpecialPageGroups, $wgSpecialPages,
$wgVersion, $useJQuery, $useJQuery, $wgContentNamespaces
;
global $egValidatorSettings, $egParamDefinitions;
I'd agree that it's not a great thing to declare globals that aren't used so
you may refine this as appropriate to Validator.
Thanks - john
--
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