From fcfc6c2894501615c86ab9e526271e63116169d3 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 26 Jan 2004 14:23:45 +0000 Subject: [PATCH] Minor unreported bug fix --- includes/Skin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ) ; -- 2.20.1