* Added a script to prune old file cache entries.
[lhc/web/wiklou.git] / includes / QueryPage.php
index c5a093d..5691881 100644 (file)
@@ -423,7 +423,7 @@ abstract class QueryPage extends SpecialPage {
        }
 
        public function getCachedTimestamp() {
-               if ( !is_null( $this->cachedTimestamp ) ) {
+               if ( is_null( $this->cachedTimestamp ) ) {
                        $dbr = wfGetDB( DB_SLAVE );
                        $fname = get_class( $this ) . '::getCachedTimestamp';
                        $this->cachedTimestamp = $dbr->selectField( 'querycache_info', 'qci_timestamp',
@@ -597,10 +597,17 @@ abstract class QueryPage extends SpecialPage {
                }
        }
 
+       /**
+        * @param $offset
+        * @return string
+        */
        function openList( $offset ) {
                return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
        }
 
+       /**
+        * @return string
+        */
        function closeList() {
                return "</ol>\n";
        }