Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / LinkCache.php
index ce4594b..b4bb757 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /**
  * Cache for article titles (prefixed DB keys) and ids linked from one source
+ * @package MediaWiki
  */
 
 /**
@@ -13,6 +14,7 @@ define ('LINKCACHE_IMAGE', 2);
 
 /**
  *
+ * @package MediaWiki
  */
 class LinkCache {      
        // Increment $mClassVer whenever old serialized versions of this class
@@ -145,7 +147,7 @@ class LinkCache {
                                $options = array();
                        }
 
-                       $id = $db->getField( 'cur', 'cur_id', array( 'cur_namespace' => $ns, 'cur_title' => $t ), $fname, $options );
+                       $id = $db->selectField( 'cur', 'cur_id', array( 'cur_namespace' => $ns, 'cur_title' => $t ), $fname, $options );
                        if ( !$id ) {
                                $id = 0;
                        }
@@ -302,7 +304,7 @@ class LinkCache {
                        $db =& wfGetDB( DB_SLAVE );
                        $options = '';
                }
-               $raw = $db->getField( 'linkscc', 'lcc_cacheobj', array( 'lcc_pageid' => $id ), $fname, $options );
+               $raw = $db->selectField( 'linkscc', 'lcc_cacheobj', array( 'lcc_pageid' => $id ), $fname, $options );
                if ( $raw === false ) {
                        return false;
                }