* Wont work
[lhc/web/wiklou.git] / includes / SearchEngine.php
index 7c627ff..11fc3de 100644 (file)
@@ -122,8 +122,8 @@ class SearchEngine {
                # There may have been a funny upload, or it may be on a shared
                # file repository such as Wikimedia Commons.
                if( $title->getNamespace() == NS_IMAGE ) {
-                       $image = new Image( $title );
-                       if( $image->exists() ) {
+                       $image = wfFindFile( $title );
+                       if( $image ) {
                                return $title;
                        }
                }
@@ -322,6 +322,14 @@ class SearchResultSet {
        function next() {
                return false;
        }
+       
+       /**
+        * Frees the result set, if applicable.
+        * @ access public
+        */
+       function free() {
+               // ...
+       }
 }
 
 
@@ -363,4 +371,4 @@ class SearchEngineDummy {
        function searchtitle() {}
        function searchtext() {}
 }
-?>
+