From: Antoine Musso Date: Mon, 27 Jun 2005 01:35:22 +0000 (+0000) Subject: quotes. Nice "require" in a foreach() need a fix ;) X-Git-Tag: 1.5.0beta2~188 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=6c52e611b79f2efb71fbb4c1233bffd1090bb806;p=lhc%2Fweb%2Fwiklou.git quotes. Nice "require" in a foreach() need a fix ;) --- 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;