From: Tim Starling Date: Mon, 26 Jan 2004 14:23:45 +0000 (+0000) Subject: Minor unreported bug fix X-Git-Tag: 1.3.0beta1~1091 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=fcfc6c2894501615c86ab9e526271e63116169d3;p=lhc%2Fweb%2Fwiklou.git Minor unreported bug fix --- diff --git a/includes/Skin.php b/includes/Skin.php index 463166b0b0..6b87dbe80a 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -49,7 +49,7 @@ class Skin { var $rc_cache ; # Cache for Enhanced Recent Changes var $rcCacheIndex ; # Recent Changes Cache Counter for visibility toggle - + var $rcMoveIndex; function Skin() { @@ -1662,6 +1662,7 @@ class Skin { function beginRecentChangesList() { $this->rc_cache = array() ; + $this->rcMoveIndex = 0; $this->rcCacheIndex = 0 ; $this->lastdate = ""; return ""; @@ -2083,7 +2084,8 @@ class Skin { $title = $rc->getTitle(); $secureName = $title->getPrefixedDBkey(); if ( $rc_type == RC_MOVE ) { - array_push($this->rc_cache, array($rc) ); + # Use an @ character to prevent collision with page names + $this->rc_cache["@@" . ($rcMoveIndex++)] = array($rc); } else { if ( !isset ( $this->rc_cache[$secureName] ) ) $this->rc_cache[$secureName] = array() ; array_push ( $this->rc_cache[$secureName] , $rc ) ;