Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -187,4 +187,8 @@ |
188 | 188 | $wgHooks['MediaWikiPerformAction'][] = 'WikidataHooks::onMediaWikiPerformAction'; |
189 | 189 | $wgHooks['AbortMove'][] = 'WikidataHooks::onAbortMove'; |
190 | 190 | |
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 | +} |