r9843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9842‎ | r9843 | r9844 >
Date:23:50, 2 July 2005
Author:kateturner
Status:old
Tags:
Comment:
don't try to redeclare classes
Modified paths:
  • /trunk/phase3/includes/ObjectCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ObjectCache.php
@@ -50,9 +50,11 @@
5151 if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ){
5252 require_once( 'memcached-client.php' );
5353
54 - class MemCachedClientforWiki extends memcached {
55 - function _debugprint( $text ) {
56 - wfDebug( "memcached: $text\n" );
 54+ if (!class_exists("MemcachedClientforWiki")) {
 55+ class MemCachedClientforWiki extends memcached {
 56+ function _debugprint( $text ) {
 57+ wfDebug( "memcached: $text\n" );
 58+ }
5759 }
5860 }
5961

Status & tagging log