From 71a0ad01017752e389d415f99bbfe05e530ceb99 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 19 Jun 2011 18:53:55 +0000 Subject: [PATCH] Follow up r90334. Removes the space after the class name in $wgBetterDirectionality = false, I think it is clearer to have the variable to hold the classes, instead of the *additional* classes. Renamed to be clearer and be camelCase. Added redundant htmlspecialchars() and spaces. --- includes/diff/DifferenceEngine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 69d8994f3d..542847772d 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -937,14 +937,14 @@ CONTROL; */ static function addHeader( $diff, $otitle, $ntitle, $multi = '', $notice = '' ) { global $wgBetterDirectionality, $wgTitle; - $dirclass = ''; + $tableClass = 'diff'; if( $wgBetterDirectionality ) { // shared.css sets diff in interface language/dir, // but the actual content should be in the page language/dir $pageLang = $wgTitle->getPageLanguage(); - $dirclass = ' diff-contentalign-'.$pageLang->alignStart(); + $tableClass .= ' diff-contentalign-' . htmlspecialchars( $pageLang->alignStart() ); } - $header = ""; + $header = "
"; if ( $diff ) { // Safari/Chrome show broken output if cols not used $header .= " -- 2.20.1