From 9095dd44a05fdcf4f19f8670d442a7680ff580eb Mon Sep 17 00:00:00 2001 From: Rob Church Date: Fri, 5 Jan 2007 01:07:04 +0000 Subject: [PATCH] Rename ImageGallery::setCaptionSafe() to ImageGallery::setCaptionHtml(), since as Simetrical points out...it's not actually safe :D --- includes/ImageGallery.php | 2 +- includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1