Some comment and whitespace fixes
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 7 Sep 2011 12:54:57 +0000 (12:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 7 Sep 2011 12:54:57 +0000 (12:54 +0000)
includes/Article.php
includes/WikiPage.php

index 3af6351..1d71bad 100644 (file)
@@ -1993,7 +1993,6 @@ class Article extends Page {
         *
         * @param $fname String Field name
         * @param $fvalue mixed New value
-        * @param $args Array Arguments to the method
         */
        public function __set( $fname, $fvalue ) {
                if ( property_exists( $this->mPage, $fname ) ) {
@@ -2003,7 +2002,7 @@ class Article extends Page {
                } elseif ( !in_array( $fname, array( 'mContext', 'mPage' ) ) ) {
                        $this->mPage->$fname = $fvalue;
                } else {
-                       trigger_error( 'Inaccessible property via __get(): ' . $fname, E_USER_NOTICE );
+                       trigger_error( 'Inaccessible property via __set(): ' . $fname, E_USER_NOTICE );
                }
        }
 
index 902d9ea..0483eeb 100644 (file)
@@ -164,11 +164,11 @@ class WikiPage extends Page {
                $dbw = wfGetDB( DB_MASTER );
                $dbw->replace( 'redirect', array( 'rd_from' ),
                        array(
-                               'rd_from'               => $this->getId(),
-                               'rd_namespace'  => $rt->getNamespace(),
-                               'rd_title'              => $rt->getDBkey(),
-                               'rd_fragment'   => $rt->getFragment(),
-                               'rd_interwiki'  => $rt->getInterwiki(),
+                               'rd_from'      => $this->getId(),
+                               'rd_namespace' => $rt->getNamespace(),
+                               'rd_title'     => $rt->getDBkey(),
+                               'rd_fragment'  => $rt->getFragment(),
+                               'rd_interwiki' => $rt->getInterwiki(),
                        ),
                        __METHOD__
                );
@@ -799,7 +799,7 @@ class WikiPage extends Page {
         *
         * @param $dbw DatabaseBase: object
         * @param $revision Revision: For ID number, and text used to set
-                                               length and redirect status fields
+        *                  length and redirect status fields
         * @param $lastRevision Integer: if given, will not overwrite the page field
         *                      when different from the currently set value.
         *                      Giving 0 indicates the new page flag should be set
@@ -1030,7 +1030,7 @@ class WikiPage extends Page {
         *          Fill in blank summaries with generated text where possible
         *
         * If neither EDIT_NEW nor EDIT_UPDATE is specified, the status of the article will be detected.
-        * If EDIT_UPDATE is specified and the article doesn't exist, the function will an
+        * If EDIT_UPDATE is specified and the article doesn't exist, the function will return an
         * edit-gone-missing error. If EDIT_NEW is specified and the article does exist, an
         * edit-already-exists error will be returned. These two conditions are also possible with
         * auto-detection due to MediaWiki's performance-optimised locking strategy.
@@ -1806,7 +1806,7 @@ class WikiPage extends Page {
         * and return value documentation
         *
         * NOTE: This function does NOT check ANY permissions, it just commits the
-        * rollback to the DB Therefore, you should only call this function direct-
+        * rollback to the DB. Therefore, you should only call this function direct-
         * ly if you want to use custom permissions checks. If you don't, use
         * doRollback() instead.
         * @param $fromP String: Name of the user whose edits to rollback.