Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
[lhc/web/wiklou.git] / includes / ImageGallery.php
index 492a3e0..f3f525c 100644 (file)
@@ -244,7 +244,7 @@ class ImageGallery
 
                        $img = wfFindFile( $nt, $time );
 
-                       if( $nt->getNamespace() != NS_IMAGE || !$img ) {
+                       if( $nt->getNamespace() != NS_FILE || !$img ) {
                                # We're dealing with a non-image, spit out the name and be done with it.
                                $thumbhtml = "\n\t\t\t".'<div style="height: '.($this->mHeights*1.25+2).'px;">'
                                        . htmlspecialchars( $nt->getText() ) . '</div>';