From 6c52e611b79f2efb71fbb4c1233bffd1090bb806 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 27 Jun 2005 01:35:22 +0000 Subject: [PATCH] quotes. Nice "require" in a foreach() need a fix ;) --- includes/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index a0bdcd5ceb..435196480c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -396,7 +396,7 @@ class Parser # gallery $text = Parser::extractTags('gallery', $text, $gallery_content, $uniq_prefix); foreach( $gallery_content as $marker => $content ) { - require_once( 'ImageGallery.php' ); + require_once( 'ImageGallery.php' ); // FIXME require in a foreach ? if ( $render ) { $gallery_content[$marker] = Parser::renderImageGallery( $content ); } else { @@ -3170,10 +3170,10 @@ class Parser $caption = ''; $width = $height = $framed = $thumb = false; - $manual_thumb = "" ; + $manual_thumb = '' ; foreach( $part as $key => $val ) { - $val_parts = explode ( "=" , $val , 2 ) ; + $val_parts = explode ( '=' , $val , 2 ) ; $left_part = array_shift ( $val_parts ) ; if ( $wgUseImageResize && ! is_null( $mwThumb->matchVariableStartToEnd($val) ) ) { $thumb=true; -- 2.20.1