From a6445a69c219a6199fb5985a74aad61b1b0ddf65 Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Tue, 14 Jul 2020 12:27:00 +0000 Subject: [PATCH] Restore div wrapper around print footer Div with a `printfooter` class that is hidden on normal page views Bug: T257914 Change-Id: Ibd3e73076f290a92671c7cdd72672921fa64fc05 (cherry picked from commit 56dbfd9a46798ea9f377a6ef60069756210a8990) --- includes/SkinVector.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/SkinVector.php b/includes/SkinVector.php index ee2b11a..9931533 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -102,6 +102,12 @@ class SkinVector extends SkinTemplate { ]; } + $printFooter = Html::rawElement( + 'div', + [ 'class' => 'printfooter' ], + $this->printSource() + ); + return [ // Data objects: 'array-indicators' => $indicators, @@ -119,7 +125,7 @@ class SkinVector extends SkinTemplate { 'html-undelete-link' => $this->prepareUndeleteLink() ?: null, // Result of OutputPage::addHTML calls 'html-body-content' => $this->wrapHTML( $title, $out->mBodytext ) - . $this->printSource(), + . $printFooter, 'html-after-content' => $this->afterContentHook(), ]; }