浏览代码

Replace usge of long deprecated and removed wfSuppressWarnings and wfRestoreWarnings (#352)

*  Replace usge of long deprecated and removed wfSuppressWarnings

* Update Foreground.skin.php

* Update Foreground.skin.php

Thanks @paladox
paladox 5 年之前
父节点
当前提交
fff0786ee3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Foreground.skin.php

+ 2 - 2
Foreground.skin.php

@@ -60,7 +60,7 @@ class foregroundTemplate extends BaseTemplate {
 	public function execute() {
 		global $wgUser;
 		global $wgForegroundFeatures;
-		wfSuppressWarnings();
+		Wikimedia\AtEase\AtEase::suppressWarnings();
 		$this->html('headelement');
 		switch ($wgForegroundFeatures['enableTabs']) {
 			case true:
@@ -278,7 +278,7 @@ class foregroundTemplate extends BaseTemplate {
 		</html>
 
 <?php
-		wfRestoreWarnings();
+		Wikimedia\AtEase\AtEase::suppressWarnings( true );
 	}
 }
 ?>