Index: trunk/extensions/PurgeCache/PurgeCache_body.php |
— | — | @@ -18,11 +18,11 @@ |
19 | 19 | $this->setHeaders(); |
20 | 20 | if ( $wgUser->isAllowed( 'purgecache' ) ) { |
21 | 21 | if ( $wgRequest->getCheck( 'purge' ) && $wgRequest->wasPosted() ) { |
22 | | - $dbw =& wfGetDB( DB_MASTER ); |
23 | | - $dbw->delete( 'objectcache', '*', 'PurgeCache::execute' ); |
24 | | - $wgOut->addWikiText( wfMsg( 'purgecache-purged' ) ); |
| 22 | + $dbw = wfGetDB( DB_MASTER ); |
| 23 | + $dbw->delete( 'objectcache', '*', __METHOD__ ); |
| 24 | + $wgOut->addWikiMsg( 'purgecache-purged' ); |
25 | 25 | } else { |
26 | | - $wgOut->addWikiText( wfMsg( 'purgecache-warning' ) ); |
| 26 | + $wgOut->addWikiMsg( 'purgecache-warning' ); |
27 | 27 | $wgOut->addHTML( $this->makeForm() ); |
28 | 28 | } |
29 | 29 | } else { |