From 2f2ac9175d6faed4899b2634e0d0c500283aeb8b Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sat, 28 Aug 2004 17:34:54 +0000 Subject: [PATCH] some code readability and "->' --- includes/PageHistory.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index d78192bf30..73495aead6 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -120,11 +120,12 @@ class PageHistory { { global $wgTitle; $this->lastdate = $this->lastline = ''; - $s = "\n

" . wfMsg( 'histlegend' ).'

'; - $s .="\n
escapeLocalURL( '-' ) . "\" method=\"get\">"; - $s .= "getPrefixedDbKey())."\"/>\n"; + $s = '

' . wfMsg( 'histlegend' ) . '

'; + $s .= ''; + $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey()) + $s .= "\n"; $s .= !empty($this->submitbuttonhtml1) ? $this->submitbuttonhtml1."\n":''; - $s .= "" . "\n
'; + $s .= !empty($this->submitbuttonhtml2) ? $this->submitbuttonhtml2 : ''; + $s .= ''; return $s; } @@ -198,9 +199,9 @@ class PageHistory { if ( '' != $c && '*' != $c ) { $c = $this->mSkin->formatcomment($c,$this->mTitle); - $s .= " (" . $c . ")"; + $s .= " ($c)"; } - $s .= "\n"; + $s .= ''; $this->lastline = $s; return $ret; -- 2.20.1