Document hooks in release notes, too, please. Also tweak some odd whitespace usage.
authorRob Church <robchurch@users.mediawiki.org>
Wed, 15 Aug 2007 22:43:59 +0000 (22:43 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 15 Aug 2007 22:43:59 +0000 (22:43 +0000)
RELEASE-NOTES
includes/Article.php

index 84e6064..59a7fe9 100644 (file)
@@ -175,6 +175,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Show edit count in user preferences
 * Improved support for audio/video extensions
 * (bug 10937) Distinguish overwritten files in upload log
+* Introduce 'ArticleUpdateBeforeRedirect' hook; see docs/hooks.txt for more
+  information
 
 == Bugfixes since 1.10 ==
 
index 10a714b..078d3ba 100644 (file)
@@ -269,13 +269,16 @@ class Article {
                                'page_random',
                                'page_touched',
                                'page_latest',
-                               'page_len' ) ;
-               wfRunHooks( 'ArticlePageDataBefore', array( &$this , &$fields ) )       ;
-               $row = $dbr->selectRow( 'page',
+                               'page_len',
+               );
+               wfRunHooks( 'ArticlePageDataBefore', array( &$this, &$fields ) );
+               $row = $dbr->selectRow(
+                       'page',
                        $fields,
                        $conditions,
-                       'Article::pageData' );
-               wfRunHooks( 'ArticlePageDataAfter', array( &$this , &$row ) )   ;
+                       __METHOD__
+               );
+               wfRunHooks( 'ArticlePageDataAfter', array( &$this, &$row ) );
                return $row ;
        }
 
@@ -1251,7 +1254,7 @@ class Article {
                        }
 
                        $extraq = ''; // Give extensions a chance to modify URL query on update
-                       wfRunHooks( 'ArticleUpdateBeforeRedirect', array($this,&$extraq) );
+                       wfRunHooks( 'ArticleUpdateBeforeRedirect', array( $this, &$extraq ) );
 
                        $this->doRedirect( $this->isRedirect( $text ), $sectionanchor, $extraq );
                }