From: Rob Church Date: Fri, 5 Jan 2007 01:07:04 +0000 (+0000) Subject: Rename ImageGallery::setCaptionSafe() to ImageGallery::setCaptionHtml(), since as... X-Git-Tag: 1.31.0-rc.0~54658 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=9095dd44a05fdcf4f19f8670d442a7680ff580eb;p=lhc%2Fweb%2Fwiklou.git Rename ImageGallery::setCaptionSafe() to ImageGallery::setCaptionHtml(), since as Simetrical points out...it's not actually safe :D --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 4fde005a39..9d58b7f6d4 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -55,7 +55,7 @@ class ImageGallery * * @param $caption Caption */ - function setCaptionSafe( $caption ) { + function setCaptionHtml( $caption ) { $this->mCaption = $caption; } diff --git a/includes/Parser.php b/includes/Parser.php index 6fd56ed17c..31e6fb3057 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4310,7 +4310,7 @@ class Parser $caption = $params['caption']; $caption = htmlspecialchars( $caption ); $caption = $this->replaceInternalLinks( $caption ); - $ig->setCaptionSafe( $caption ); + $ig->setCaptionHtml( $caption ); } $lines = explode( "\n", $text );