Index: trunk/extensions/MetavidWiki/includes/MV_Index.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | |
27 | 27 | class MV_Index { |
28 | 28 | var $mvTitle = null; |
29 | | - var $annoCache = array(); |
| 29 | + static $annoCache = array(); |
30 | 30 | function __construct( & $mvTitle = null ) { |
31 | 31 | if ( $mvTitle != null ) |
32 | 32 | $this->mvTitle = $mvTitle; |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | //returns the result in array set to current: |
233 | 233 | $aMvd = end($aMvd_rows ); |
234 | 234 | if(!isset(self::$annoCache[ $aMvd->id ])){ |
235 | | - $this->annoCache[ $aMvd->id ] = $aMvd; |
| 235 | + self::$annoCache[ $aMvd->id ] = $aMvd; |
236 | 236 | }; |
237 | 237 | return $aMvd; |
238 | 238 | } |