r113050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113049‎ | r113050 | r113051 >
Date:17:55, 5 March 2012
Author:kipcool
Status:deferred
Tags:
Comment:
made LocalApp.php optional
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/App.php
@@ -187,4 +187,8 @@
188188 $wgHooks['MediaWikiPerformAction'][] = 'WikidataHooks::onMediaWikiPerformAction';
189189 $wgHooks['AbortMove'][] = 'WikidataHooks::onAbortMove';
190190
191 -require_once( "{$IP}/extensions/Wikidata/LocalApp.php" );
 191+// LocalApp.php is optional. Its function is like LocalSettings.php,
 192+// if you want to separate the MediaWiki configuration from the Wikidata configuration
 193+if ( file_exists ( "{$IP}/extensions/Wikidata/LocalApp.php" )) {
 194+ require_once( "{$IP}/extensions/Wikidata/LocalApp.php" );
 195+}

Status & tagging log