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:
e46587b
)
don't try to redeclare classes
author
River Tarnell
<kateturner@users.mediawiki.org>
Sat, 2 Jul 2005 23:50:09 +0000
(23:50 +0000)
committer
River Tarnell
<kateturner@users.mediawiki.org>
Sat, 2 Jul 2005 23:50:09 +0000
(23:50 +0000)
includes/ObjectCache.php
patch
|
blob
|
history
diff --git
a/includes/ObjectCache.php
b/includes/ObjectCache.php
index
4558ba7
..
9ead4b4
100644
(file)
--- a/
includes/ObjectCache.php
+++ b/
includes/ObjectCache.php
@@
-50,9
+50,11
@@
function &wfGetCache( $inputType ) {
if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ){
require_once( 'memcached-client.php' );
- class MemCachedClientforWiki extends memcached {
- function _debugprint( $text ) {
- wfDebug( "memcached: $text\n" );
+ if (!class_exists("MemcachedClientforWiki")) {
+ class MemCachedClientforWiki extends memcached {
+ function _debugprint( $text ) {
+ wfDebug( "memcached: $text\n" );
+ }
}
}