r105802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105801‎ | r105802 | r105803 >
Date:16:24, 11 December 2011
Author:kipcool
Status:deferred
Tags:
Comment:
suggest module added for special pages
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)
  • /trunk/extensions/Wikidata/Wikidata.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/Wikidata.hooks.php
@@ -13,8 +13,12 @@
1414
1515 if ( $wgRequest->getText( 'action' )=='edit' ) {
1616 $out->addModules( 'ext.Wikidata.edit' );
 17+ $out->addModules( 'ext.Wikidata.suggest' );
1718 }
1819
 20+ if ( $skin->getTitle()->isSpecialPage() ) {
 21+ $out->addModules( 'ext.Wikidata.suggest' );
 22+ }
1923 return true;
2024 }
2125
Index: trunk/extensions/Wikidata/App.php
@@ -52,8 +52,11 @@
5353 );
5454
5555 $wgResourceModules['ext.Wikidata.edit'] = $resourcePathArray + array(
56 - 'scripts' => array( 'OmegaWiki/resources/suggest.js', 'OmegaWiki/resources/omegawiki-edit.js' )
 56+ 'scripts' => 'OmegaWiki/resources/omegawiki-edit.js'
5757 );
 58+$wgResourceModules['ext.Wikidata.suggest'] = $resourcePathArray + array(
 59+ 'scripts' => 'OmegaWiki/resources/suggest.js'
 60+);
5861
5962
6063 $wgAutoloadClasses['WikidataHooks'] = $dir . 'Wikidata.hooks.php';

Status & tagging log