Skip to content

Commit

Permalink
Replace usge of long deprecated and removed wfSuppressWarnings and w…
Browse files Browse the repository at this point in the history
…fRestoreWarnings (jthingelstad#352)

*  Replace usge of long deprecated and removed wfSuppressWarnings

* Update Foreground.skin.php

* Update Foreground.skin.php

Thanks @paladox
  • Loading branch information
paladox authored and Hutchy68 committed Jan 16, 2020
1 parent 40b53a7 commit fff0786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Foreground.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -278,7 +278,7 @@ public function execute() {
</html>

<?php
wfRestoreWarnings();
Wikimedia\AtEase\AtEase::suppressWarnings( true );
}
}
?>

0 comments on commit fff0786

Please sign in to comment.