Cleanup for r27897:
[lhc/web/wiklou.git] / includes / LinkCache.php
index 0f4e620..7c49d88 100644 (file)
@@ -1,10 +1,7 @@
 <?php
 /**
  * Cache for article titles (prefixed DB keys) and ids linked from one source
- * @addtogroup Cache
- */
-
-/**
+ * 
  * @addtogroup Cache
  */
 class LinkCache {
@@ -133,14 +130,14 @@ class LinkCache {
                        $id = $wgMemc->get( $key = $this->getKey( $title ) );
                if( ! is_integer( $id ) ) {
                        if ( $this->mForUpdate ) {
-                               $db =& wfGetDB( DB_MASTER );
+                               $db = wfGetDB( DB_MASTER );
                                if ( !( $wgAntiLockFlags & ALF_NO_LINK_LOCK ) ) {
                                        $options = array( 'FOR UPDATE' );
                                } else {
                                        $options = array();
                                }
                        } else {
-                               $db =& wfGetDB( DB_SLAVE );
+                               $db = wfGetDB( DB_SLAVE );
                                $options = array();
                        }
 
@@ -172,4 +169,4 @@ class LinkCache {
                $this->mBadLinks = array();
        }
 }
-?>
+