Index: trunk/phase3/includes/Article.php |
— | — | @@ -2404,7 +2404,7 @@ |
2405 | 2405 | if ( !$dbw->cleanupTriggers() ) { |
2406 | 2406 | # Clean up recentchanges entries... |
2407 | 2407 | $dbw->delete( 'recentchanges', |
2408 | | - array( 'rc_namespace' => $ns, 'rc_title' => $t, 'rc_type != '.RC_LOG, 'rc_cur_id' => $id ), |
| 2408 | + array( 'rc_type != '.RC_LOG, 'rc_cur_id' => $id ), |
2409 | 2409 | __METHOD__ ); |
2410 | 2410 | } |
2411 | 2411 | |
— | — | @@ -3104,7 +3104,7 @@ |
3105 | 3105 | * @param $title_obj a title object |
3106 | 3106 | */ |
3107 | 3107 | |
3108 | | - static function onArticleCreate($title) { |
| 3108 | + public static function onArticleCreate($title) { |
3109 | 3109 | # The talk page isn't in the regular link tables, so we need to update manually: |
3110 | 3110 | if ( $title->isTalkPage() ) { |
3111 | 3111 | $other = $title->getSubjectPage(); |
— | — | @@ -3119,7 +3119,7 @@ |
3120 | 3120 | $title->deleteTitleProtection(); |
3121 | 3121 | } |
3122 | 3122 | |
3123 | | - static function onArticleDelete( $title ) { |
| 3123 | + public static function onArticleDelete( $title ) { |
3124 | 3124 | global $wgUseFileCache, $wgMessageCache; |
3125 | 3125 | |
3126 | 3126 | // Update existence markers on article/talk tabs... |
— | — | @@ -3171,7 +3171,7 @@ |
3172 | 3172 | # Purge squid for this page only |
3173 | 3173 | $title->purgeSquid(); |
3174 | 3174 | |
3175 | | - # Clear file cache |
| 3175 | + # Clear file cache for this page only |
3176 | 3176 | if ( $wgUseFileCache ) { |
3177 | 3177 | $cm = new HTMLFileCache( $title ); |
3178 | 3178 | @unlink( $cm->fileCacheName() ); |
— | — | @@ -3292,7 +3292,7 @@ |
3293 | 3293 | * |
3294 | 3294 | * @return array Array of Title objects |
3295 | 3295 | */ |
3296 | | - function getUsedTemplates() { |
| 3296 | + public function getUsedTemplates() { |
3297 | 3297 | $result = array(); |
3298 | 3298 | $id = $this->mTitle->getArticleID(); |
3299 | 3299 | if( $id == 0 ) { |
— | — | @@ -3319,7 +3319,7 @@ |
3320 | 3320 | * |
3321 | 3321 | * @return array Array of Title objects |
3322 | 3322 | */ |
3323 | | - function getHiddenCategories() { |
| 3323 | + public function getHiddenCategories() { |
3324 | 3324 | $result = array(); |
3325 | 3325 | $id = $this->mTitle->getArticleID(); |
3326 | 3326 | if( $id == 0 ) { |