From: Aaron Schulz Date: Fri, 6 Apr 2012 23:17:44 +0000 (-0700) Subject: Revert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table... X-Git-Tag: 1.31.0-rc.0~23994^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=2620d8b0b4497c81b4f9a79b30d6812aed4c0f3a;p=lhc%2Fweb%2Fwiklou.git Revert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table row at RecentChanges")" It was causing: Notice: Array to string conversion in D:\www\DevWiki\core\includes\actions\HistoryAction.php on line 164
This reverts commit 6cd3995f11c36ab3a58fd7d59f8c0320e15480a3. Conflicts: RELEASE-NOTES-1.20 Change-Id: Iad8dad0bbc07214620af62533df432065e4698c0 --- diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index a0b3d4d80f..73f48f50c8 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -63,7 +63,6 @@ production. * (bug 34735) Updated compressOld.php documentation to mention the different usages of -s and -n parameters depending on compression type. * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists. -* (bug 18704) Add an unique CSS class or ID to the tagfilter table row at RecentChanges. * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when. trying to defer foreign key for externallinks. * (bug 32748) Printer friendly version of article decode Unicode chars as a diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index 01b93ad494..63d3732707 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -210,7 +210,7 @@ class ChangeTags { return $fullForm ? '' : array(); $data = array( Html::rawElement( 'label', array( 'for' => 'tagfilter' ), wfMsgExt( 'tag-filter', 'parseinline' ) ), - Xml::input( 'tagfilter', 20, $selected ), array( 'class' => 'mw-tagfilter-input' ) ); + Xml::input( 'tagfilter', 20, $selected ) ); if ( !$fullForm ) { return $data; @@ -219,7 +219,7 @@ class ChangeTags { $html = implode( ' ', $data ); $html .= "\n" . Xml::element( 'input', array( 'type' => 'submit', 'value' => wfMsg( 'tag-filter-submit' ) ) ); $html .= "\n" . Html::hidden( 'title', $title->getPrefixedText() ); - $html = Xml::tags( 'form', array( 'action' => $title->getLocalURL(), 'class' => 'mw-tagfilter-form', 'method' => 'get' ), $html ); + $html = Xml::tags( 'form', array( 'action' => $title->getLocalURL(), 'method' => 'get' ), $html ); return $html; } diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index c05aaad6f2..bfc5248dda 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -568,14 +568,14 @@ class SpecialRecentChanges extends IncludableSpecialPage { $submit = ' ' . Xml::submitbutton( wfMsg( 'allpagessubmit' ) ); $out = Xml::openElement( 'table', array( 'class' => 'mw-recentchanges-table' ) ); - foreach( $extraOpts as $name => $optionRow ) { + foreach( $extraOpts as $optionRow ) { # Add submit button to the last row only ++$count; - $addSubmit = ( $count === $extraOptsCount ) ? $submit : ''; + $addSubmit = $count === $extraOptsCount ? $submit : ''; $out .= Xml::openElement( 'tr' ); if( is_array( $optionRow ) ) { - $out .= Xml::tags( 'td', array( 'class' => 'mw-label mw-' . $name . '-label' ), $optionRow[0] ); + $out .= Xml::tags( 'td', array( 'class' => 'mw-label' ), $optionRow[0] ); $out .= Xml::tags( 'td', array( 'class' => 'mw-input' ), $optionRow[1] . $addSubmit ); } else { $out .= Xml::tags( 'td', array( 'class' => 'mw-input', 'colspan' => 2 ), $optionRow . $addSubmit );