Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -31,11 +31,17 @@ |
32 | 32 | * @return true |
33 | 33 | */ |
34 | 34 | function enableSemantics( $namespace = null, $complete = false ) { |
35 | | - global $wgVersion, $wgExtensionFunctions, $wgAutoloadClasses, $wgSpecialPages; |
| 35 | + global $wgVersion, $wgFooterIcons, $wgExtensionFunctions, $wgAutoloadClasses, $wgSpecialPages; |
36 | 36 | global $wgSpecialPageGroups, $wgHooks, $wgExtensionMessagesFiles; |
37 | 37 | global $smwgIP, $smwgNamespace, $wgJobClasses, $wgExtensionAliasesFiles, $wgServer; |
38 | 38 | global $wgResourceModules, $smwgScriptPath; |
39 | | - |
| 39 | + |
| 40 | + $wgFooterIcons["poweredby"]["semanticmediawiki"] = array( |
| 41 | + "src" => null, |
| 42 | + "url" => "http://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki", |
| 43 | + "alt" => "Powered by Semantic MediaWiki", |
| 44 | + ); |
| 45 | + |
40 | 46 | // The dot tells that the domain is not complete. It will be completed |
41 | 47 | // in the Export since we do not want to create a title object here when |
42 | 48 | // it is not needed in many cases. |
— | — | @@ -265,7 +271,7 @@ |
266 | 272 | */ |
267 | 273 | function smwfSetupExtension() { |
268 | 274 | wfProfileIn( 'smwfSetupExtension (SMW)' ); |
269 | | - global $smwgIP, $wgHooks, $wgParser, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink, $smwgMW_1_14; |
| 275 | + global $smwgIP, $smwgScriptPath, $wgHooks, $wgFooterIcons, $wgParser, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink, $smwgMW_1_14; |
270 | 276 | |
271 | 277 | $smwgMasterStore = null; |
272 | 278 | $smwgIQRunningNumber = 0; |
— | — | @@ -289,6 +295,11 @@ |
290 | 296 | |
291 | 297 | $wgHooks['SkinAfterContent'][] = 'SMWFactbox::onSkinAfterContent'; // draw Factbox below categories |
292 | 298 | $wgHooks['SkinGetPoweredBy'][] = 'smwfAddPoweredBySMW'; |
| 299 | + if ( isset($wgFooterIcons["poweredby"]) |
| 300 | + && isset($wgFooterIcons["poweredby"]["semanticmediawiki"]) |
| 301 | + && $wgFooterIcons["poweredby"]["semanticmediawiki"]["src"] === null ) { |
| 302 | + $wgFooterIcons["poweredby"]["semanticmediawiki"]["src"] = "$smwgScriptPath/skins/images/smw_button.png"; |
| 303 | + } |
293 | 304 | $smwgMW_1_14 = true; // assume latest 1.14 API |
294 | 305 | |
295 | 306 | // Registration of the extension credits, see Special:Version. |