From d81f562b712f2387fa02290bf2ca86392ab356f2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 20:21:25 +0000 Subject: Aktualisierung auf Version 1.8.1 --- includes/ImageGallery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/ImageGallery.php') diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 0935ac30..7ff456b6 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -55,7 +55,7 @@ class ImageGallery * * @param $skin Skin object */ - function useSkin( &$skin ) { + function useSkin( $skin ) { $this->mSkin =& $skin; } @@ -82,6 +82,7 @@ class ImageGallery */ function add( $image, $html='' ) { $this->mImages[] = array( &$image, $html ); + wfDebug( "ImageGallery::add " . $image->getName() . "\n" ); } /** @@ -135,7 +136,7 @@ class ImageGallery function toHTML() { global $wgLang, $wgIgnoreImageErrors, $wgGenerateThumbnailOnParse; - $sk =& $this->getSkin(); + $sk = $this->getSkin(); $s = ''; if( $this->mCaption ) @@ -157,8 +158,7 @@ class ImageGallery # The image is blacklisted, just show it as a text link. $thumbhtml = '
' . $sk->makeKnownLinkObj( $nt, htmlspecialchars( $nt->getText() ) ) . '
'; - } - else if( !( $thumb = $img->getThumbnail( 120, 120, $wgGenerateThumbnailOnParse ) ) ) { + } else if( !( $thumb = $img->getThumbnail( 120, 120, $wgGenerateThumbnailOnParse ) ) ) { # Error generating thumbnail. $thumbhtml = '
' . htmlspecialchars( $img->getLastError() ) . '
'; -- cgit v1.2.3-54-g00ecf