r48942 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48941‎ | r48942 | r48943 >
Date:22:58, 27 March 2009
Author:dale
Status:deferred
Tags:
Comment:
fixed instance referenced in static context
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_Index.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/MV_Index.php
@@ -25,7 +25,7 @@
2626
2727 class MV_Index {
2828 var $mvTitle = null;
29 - var $annoCache = array();
 29+ static $annoCache = array();
3030 function __construct( & $mvTitle = null ) {
3131 if ( $mvTitle != null )
3232 $this->mvTitle = $mvTitle;
@@ -231,7 +231,7 @@
232232 //returns the result in array set to current:
233233 $aMvd = end($aMvd_rows );
234234 if(!isset(self::$annoCache[ $aMvd->id ])){
235 - $this->annoCache[ $aMvd->id ] = $aMvd;
 235+ self::$annoCache[ $aMvd->id ] = $aMvd;
236236 };
237237 return $aMvd;
238238 }

Status & tagging log