Removed thumb area restriction code, added code to chck for zero-sized thumbnails
[lhc/web/wiklou.git] / includes / SpecialCategories.php
index 831cc9b..c23dc08 100644 (file)
@@ -10,7 +10,7 @@ function wfSpecialCategories()
        $r .= "<OL>\n" ;
        $cat = ucfirst ( wfMsg ( "category" ) ) ;
        $sql = "SELECT cur_title FROM cur WHERE cur_title LIKE \"{$cat}:%\"" ;
-       $res = wfQuery ( $sql ) ;
+       $res = wfQuery ( $sql, DB_READ ) ;
        while ( $x = wfFetchObject ( $res ) )
          {
            $t = explode ( ":" , $x->cur_title , 2 ) ;
@@ -24,7 +24,7 @@ function wfSpecialCategories()
 
        $r .= "<hr>\n" ;
        $sql = "SELECT DISTINCT bl_to FROM brokenlinks WHERE bl_to LIKE \"{$cat}:%\"" ;
-       $res = wfQuery ( $sql ) ;
+       $res = wfQuery ( $sql, DB_READ ) ;
        $r .= "<OL>\n" ;
        while ( $x = wfFetchObject ( $res ) )
          {