Index: branches/Maps0.8/Maps.php |
— | — | @@ -136,9 +136,6 @@ |
137 | 137 | // Since 0.6.5 |
138 | 138 | $wgHooks['UnitTestsList'][] = 'MapsHooks::registerUnitTests'; |
139 | 139 | |
140 | | -// Since 0.7 |
141 | | -$wgHooks['SkinAfterBottomScripts'][] = 'MapsHooks::addOnloadFunction'; |
142 | | - |
143 | 140 | // Since 0.7.1 |
144 | 141 | $wgHooks['ArticleFromTitle'][] = 'MapsHooks::onArticleFromTitle'; |
145 | 142 | |
Index: branches/Maps0.8/Maps.hooks.php |
— | — | @@ -46,20 +46,6 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
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 | | - /** |
64 | 50 | * Intercept pages in the Layer namespace to handle them correctly. |
65 | 51 | * |
66 | 52 | * @param $title: Title |