浏览代码

Fix MW 1.32 compatibility with removal of wfRunHooks() change to Hooks:run()

Tom Hutchison 6 年之前
父节点
当前提交
19a1273cca
共有 3 个文件被更改,包括 5 次插入2 次删除
  1. 3 0
      CHANGELOG.md
  2. 1 1
      Foreground.skin.php
  3. 1 1
      skin.json

+ 3 - 0
CHANGELOG.md

@@ -1,3 +1,6 @@
+## Version 2.2
+* [bug][compatibility] Fix for MW version 1.32 - wfRunHooks() to Hooks::run() 
+
 ## Version 2.1
 
 * [bug] Regression - Text footer alignment and social icons (follow) #319

+ 1 - 1
Foreground.skin.php

@@ -199,7 +199,7 @@ class foregroundTemplate extends BaseTemplate {
 						<!--RTL -->
 						<ul id="actions" class="f-dropdown" data-dropdown-content>
 							<?php foreach( $this->data['content_actions'] as $key => $item ) { echo preg_replace(array('/\sprimary="1"/','/\scontext="[a-z]+"/','/\srel="archives"/'),'',$this->makeListItem($key, $item)); } ?>
-							<?php wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this, true ) );  ?>
+							<?php Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) );  ?>
 						</ul>
 						<!--RTL -->
 					<?php endif;

+ 1 - 1
skin.json

@@ -1,6 +1,6 @@
 {
 	"name": "Foreground",
-	"version": "2.1.0",
+	"version": "2.2.0",
 	"author": [
 		"Garrick Van Buren",
 		"Jamie Thingelstad",