* using htmlspecialchars() for safe XHTML output
[lhc/web/wiklou.git] / includes / QueryPage.php
index d6ec768..4616d59 100644 (file)
@@ -245,6 +245,8 @@ class QueryPage {
                $res = $dbr->query( $sql );
                $num = $dbr->numRows($res);
 
+               $this->preprocessResults( $dbr, $res );
+
                $sk = $wgUser->getSkin( );
 
                if($shownavigation) {
@@ -294,6 +296,11 @@ class QueryPage {
                return $num;
        }
 
+       /**
+        * Do any necessary preprocessing of the result object
+        */
+       function preprocessResults( &$db, &$res ) {}
+
        /**
         * Similar to above, but packaging in a syndicated feed instead of a web page
         */
@@ -332,7 +339,7 @@ class QueryPage {
                if( !isset( $row->title ) ) {
                        return NULL;
                }
-               $title = Title::MakeTitle( IntVal( $row->namespace ), $row->title );
+               $title = Title::MakeTitle( intval( $row->namespace ), $row->title );
                if( $title ) {
                        if( isset( $row->timestamp ) ) {
                                $date = $row->timestamp;