r83273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83272‎ | r83273 | r83274 >
Date:03:53, 5 March 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
rem obsolete code
Modified paths:
  • /branches/Maps0.8/Maps.hooks.php (modified) (history)
  • /branches/Maps0.8/Maps.php (modified) (history)

Diff [purge]

Index: branches/Maps0.8/Maps.php
@@ -136,9 +136,6 @@
137137 // Since 0.6.5
138138 $wgHooks['UnitTestsList'][] = 'MapsHooks::registerUnitTests';
139139
140 -// Since 0.7
141 -$wgHooks['SkinAfterBottomScripts'][] = 'MapsHooks::addOnloadFunction';
142 -
143140 // Since 0.7.1
144141 $wgHooks['ArticleFromTitle'][] = 'MapsHooks::onArticleFromTitle';
145142
Index: branches/Maps0.8/Maps.hooks.php
@@ -46,20 +46,6 @@
4747 }
4848
4949 /**
50 - * Adds the map JS to the bottom of the page. This is a hack to get
51 - * around the lack of inline script support in the MW 1.17 resource loader.
52 - *
53 - * @since 0.7
54 - */
55 - public static function addOnloadFunction( $skin, &$text ) {
56 - if ( method_exists( 'ParserOutput', 'addModules' ) ) {
57 - $text .= Html::inlineScript( 'if (window.runMapsOnloadHook) runMapsOnloadHook();' );
58 - }
59 -
60 - return true;
61 - }
62 -
63 - /**
6450 * Intercept pages in the Layer namespace to handle them correctly.
6551 *
6652 * @param $title: Title

Status & tagging log