From c5c99c4d715a9d54fb75c1f6952e9c18653eb144 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 25 Aug 2011 08:28:07 +0000 Subject: [PATCH] Fix calls to undefined Xml::hidden r95396 --- includes/specials/SpecialGlobalFileUsage.php | 4 ++-- includes/specials/SpecialGlobalTemplateUsage.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialGlobalFileUsage.php b/includes/specials/SpecialGlobalFileUsage.php index f4cf075f8e..3464db85b2 100644 --- a/includes/specials/SpecialGlobalFileUsage.php +++ b/includes/specials/SpecialGlobalFileUsage.php @@ -43,9 +43,9 @@ class SpecialGlobalFileUsage extends SpecialPage { /* Build form */ $html = Xml::openElement( 'form', array( 'action' => $wgScript ) ) . "\n"; // Name of SpecialPage - $html .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; + $html .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; // Limit - $html .= Xml::hidden( 'limit', $wgRequest->getInt( 'limit', 50 ) ); + $html .= Html::hidden( 'limit', $wgRequest->getInt( 'limit', 50 ) ); // Input box with target prefilled if available $formContent = "\t" . Xml::input( 'target', 40, is_null( $this->target ) ? '' : $this->target->getText() ) diff --git a/includes/specials/SpecialGlobalTemplateUsage.php b/includes/specials/SpecialGlobalTemplateUsage.php index 3e8e8eda4c..a48f9e0bef 100644 --- a/includes/specials/SpecialGlobalTemplateUsage.php +++ b/includes/specials/SpecialGlobalTemplateUsage.php @@ -46,9 +46,9 @@ class SpecialGlobalTemplateUsage extends SpecialPage { /* Build form */ $html = Xml::openElement( 'form', array( 'action' => $wgScript ) ) . "\n"; // Name of SpecialPage - $html .= Xml::hidden( 'title', $this->getTitle( )->getPrefixedText( ) ) . "\n"; + $html .= Html::hidden( 'title', $this->getTitle( )->getPrefixedText( ) ) . "\n"; // Limit - $html .= Xml::hidden( 'limit', $wgRequest->getInt( 'limit', 50 ) ); + $html .= Html::hidden( 'limit', $wgRequest->getInt( 'limit', 50 ) ); // Input box with target prefilled if available $formContent = "\t" . Xml::input( 'target', 40, is_null( $this->target ) ? '' : $this->target->getPrefixedText( ) ) @@ -92,7 +92,6 @@ class SpecialGlobalTemplateUsage extends SpecialPage { return; } - $offset = $query->getOffsetString( ); $navbar = $this->getNavBar( $query ); $targetName = $this->target->getPrefixedText( ); -- 2.20.1