MediaWiki r8605 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r8604‎ | r8605 (on ViewVC)‎ | r8606 >
Date:11:09, 25 April 2005
Author:gabrielwicke
Status:old
Tags:
Comment:
CategoryPageView hook as in 1.4
Modified paths:

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -336,3 +336,6 @@
337337 $user: user that watched
338338 $article: article object watched
339339
 340+'CategoryPageView': before viewing a categorypage in CategoryPage::view
 341+$catpage: CategoryPage instance
 342+
Index: trunk/phase3/includes/CategoryPage.php
@@ -19,6 +19,8 @@
2020 class CategoryPage extends Article {
2121
2222 function view() {
 23+ if(!wfRunHooks('CategoryPageView', array(&$this))) return;
 24+
2325 if ( NS_CATEGORY == $this->mTitle->getNamespace() ) {
2426 $this->openShowCategory();
2527 }

Status & tagging log

  • 15:03, 12 September 2011 Meno25 (Talk | contribs) changed the status of r8605 [removed: ok added: old]
  • 14:06, 1 July 2009 ^demon (Talk | contribs) changed the status of r8605 [removed: new added: ok]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox