Revert r63197 '(bug 12797) Allow adjusting of default gallery display options' Breaks...
[lhc/web/wiklou.git] / includes / ImageGallery.php
index 64fa9cb..c76c8e5 100644 (file)
@@ -32,22 +32,20 @@ class ImageGallery
         */
        private $contextTitle = false;
 
+       private $mPerRow = 4; // How many images wide should the gallery be?
+       private $mWidths = 120, $mHeights = 120; // How wide/tall each thumbnail should be
+
        private $mAttribs = array();
 
        /**
         * Create a new image gallery object.
         */
        function __construct( ) {
-               global $wgGalleryImagesPerRow, $wgGalleryImageWidth, $wgGalleryImageHeight, $wgGalleryShowBytes, $wgGalleryCaptionLength;
                $this->mImages = array();
-               $this->mShowBytes = $wgGalleryShowBytes;
+               $this->mShowBytes = true;
                $this->mShowFilename = true;
                $this->mParser = false;
                $this->mHideBadImages = false;
-               $this->mPerRow = $wgGalleryImagesPerRow;
-               $this->mWidths = $wgGalleryImageWidth;
-               $this->mHeights = $wgGalleryImageHeight;
-               $this->mCaptionLength = $wgGalleryCaptionLength;
        }
 
        /**
@@ -310,7 +308,7 @@ class ImageGallery
                        $textlink = $this->mShowFilename ?
                                $sk->link(
                                        $nt,
-                                       htmlspecialchars( $wgLang->truncate( $nt->getText(), $this->mCaptionLength ) ),
+                                       htmlspecialchars( $wgLang->truncate( $nt->getText(), 20 ) ),
                                        array(),
                                        array(),
                                        array( 'known', 'noclasses' )