From c623db3b08119d45522b2e4a6a84d28a43794ff5 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 10 Jun 2004 18:49:24 +0000 Subject: [PATCH] id 'historysubmit' on lower submit button for changing the access keys --- includes/PageHistory.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index a79e76f0bb..a657370776 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -78,10 +78,12 @@ class PageHistory { $this->mTitle->getPrefixedText(), "action=history", $atend ); $s = $numbar; - $this->submitbuttonhtml = ( $this->linesonpage > 0) ? '" : - ''; + if($this->linesonpage > 0) { + $submitpart1 = 'submitbuttonhtml1 = $submitpart1 . ' />'; + $this->submitbuttonhtml2 = $submitpart1 . ' id="historysubmit" />'; + } $s .= $this->beginHistoryList(); $counter = 1; if( $offset == 0 ){ @@ -117,7 +119,7 @@ class PageHistory { $s = "\n

" . wfMsg( "histlegend" ).'

'; $s .="\n
escapeLocalURL( '-' ) . "\" method=\"get\">"; $s .= "getPrefixedDbKey())."\"/>\n"; - $s .= !empty($this->submitbuttonhtml) ? $this->submitbuttonhtml."\n":''; + $s .= !empty($this->submitbuttonhtml1) ? $this->submitbuttonhtml1."\n":''; $s .= "" . "\n"; - $s .= !empty($this->submitbuttonhtml) ? $this->submitbuttonhtml."\n":''; + $s .= !empty($this->submitbuttonhtml2) ? $this->submitbuttonhtml2."\n":''; $s .= "
\n"; return $s; } -- 2.20.1