Followup r67707, cast these to boolean just to be paranoid
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 9 Jun 2010 15:06:11 +0000 (15:06 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 9 Jun 2010 15:06:11 +0000 (15:06 +0000)
includes/ImageGallery.php

index 0b44ab9..3e6e3b9 100644 (file)
@@ -183,7 +183,7 @@ class ImageGallery
         * @param $f Boolean: set to false to disable.
         */
        function setShowBytes( $f ) {
-               $this->mShowBytes = $f;
+               $this->mShowBytes = (bool)$f;
        }
 
        /**
@@ -193,7 +193,7 @@ class ImageGallery
         * @param $f Boolean: set to false to disable.
         */
        function setShowFilename( $f ) {
-               $this->mShowFilename = $f;
+               $this->mShowFilename = (bool)$f;
        }
 
        /**