Skip to content
Snippets Groups Projects
Commit c60983e9 authored by Frank Duncan's avatar Frank Duncan
Browse files

Check in code that picksome/collection are loaded in the right order

Part of the code review for #78: refactoring ansible.

See https://github.com/OpenTechStrategies/torque-sites/pull/78#discussion_r517520952
for more information.
parent a752c17b
No related branches found
No related tags found
No related merge requests found
<?php
require_once "$IP/extensions/Collection/Collection.php";
if(isset($wgPickSomeLoaded)) {
echo "PickSome Loaded before Collection, so bombing out";
throw new RunTimeException("Collection being loaded after PickSome");
}
$wgCollectionMWServeURL = "http://127.0.0.1:8899";
$wgCollectionMaxArticles = 250;
$wgEnableApi = true;
......
......@@ -10,6 +10,11 @@
# directly when loaded by LocalSettings (as opposed to in extension.json), overriding
# the normal way mediawiki loads things.
$wgHooks['SidebarBeforeOutput'][] = 'PickSomeHooks::onSidebarBeforeOutput';
# And then, because we want to check in the Collection loadup config that
# picksome was not loaded, we include a global here
$wgPickSomeLoaded = true;
wfLoadExtension('PickSome');
$wgPickSomeNumberOfPicks = 15;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment