dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5e8241
)
Minor unreported bug fix
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 26 Jan 2004 14:23:45 +0000
(14:23 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 26 Jan 2004 14:23:45 +0000
(14:23 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
463166b
..
6b87dbe
100644
(file)
--- 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 $rc_cache ; # Cache for Enhanced Recent Changes
var $rcCacheIndex ; # Recent Changes Cache Counter for visibility toggle
-
+ var $rcMoveIndex;
function Skin()
{
function Skin()
{
@@
-1662,6
+1662,7
@@
class Skin {
function beginRecentChangesList()
{
$this->rc_cache = array() ;
function beginRecentChangesList()
{
$this->rc_cache = array() ;
+ $this->rcMoveIndex = 0;
$this->rcCacheIndex = 0 ;
$this->lastdate = "";
return "";
$this->rcCacheIndex = 0 ;
$this->lastdate = "";
return "";
@@
-2083,7
+2084,8
@@
class Skin {
$title = $rc->getTitle();
$secureName = $title->getPrefixedDBkey();
if ( $rc_type == RC_MOVE ) {
$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 ) ;
} else {
if ( !isset ( $this->rc_cache[$secureName] ) ) $this->rc_cache[$secureName] = array() ;
array_push ( $this->rc_cache[$secureName] , $rc ) ;