From 3d291f615ba35b64a27b276d0d444a026023d37a Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 24 Jun 2006 00:27:16 +0000 Subject: [PATCH] Cripple the wiki text stuff for now. It doesn't SEEM dangerous but I haven't tested the lot. --- includes/ImageGallery.php | 3 +-- includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 86927c5b0e..ccf2c146f7 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -43,7 +43,6 @@ class ImageGallery /** * Set the caption - * What's passed is used as HTML so don't do anything stupid * * @param $caption Caption */ @@ -140,7 +139,7 @@ class ImageGallery $s = ''; if( $this->mCaption ) - $s .= ''; + $s .= ''; $i = 0; foreach ( $this->mImages as $pair ) { diff --git a/includes/Parser.php b/includes/Parser.php index 8baaf97e89..e6ebb460c4 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4125,7 +4125,7 @@ class Parser $ig->useSkin( $this->mOptions->getSkin() ); if( isset( $params['caption'] ) ) - $ig->setCaption( $this->replaceInternalLinks( $params['caption'] ) ); + $ig->setCaption( $params['caption'] ); $lines = explode( "\n", $text ); foreach ( $lines as $line ) { -- 2.20.1