Index: trunk/phase3/includes/Article.php |
— | — | @@ -1993,7 +1993,6 @@ |
1994 | 1994 | * |
1995 | 1995 | * @param $fname String Field name |
1996 | 1996 | * @param $fvalue mixed New value |
1997 | | - * @param $args Array Arguments to the method |
1998 | 1997 | */ |
1999 | 1998 | public function __set( $fname, $fvalue ) { |
2000 | 1999 | if ( property_exists( $this->mPage, $fname ) ) { |
— | — | @@ -2003,7 +2002,7 @@ |
2004 | 2003 | } elseif ( !in_array( $fname, array( 'mContext', 'mPage' ) ) ) { |
2005 | 2004 | $this->mPage->$fname = $fvalue; |
2006 | 2005 | } else { |
2007 | | - trigger_error( 'Inaccessible property via __get(): ' . $fname, E_USER_NOTICE ); |
| 2006 | + trigger_error( 'Inaccessible property via __set(): ' . $fname, E_USER_NOTICE ); |
2008 | 2007 | } |
2009 | 2008 | } |
2010 | 2009 | |
Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -164,11 +164,11 @@ |
165 | 165 | $dbw = wfGetDB( DB_MASTER ); |
166 | 166 | $dbw->replace( 'redirect', array( 'rd_from' ), |
167 | 167 | array( |
168 | | - 'rd_from' => $this->getId(), |
169 | | - 'rd_namespace' => $rt->getNamespace(), |
170 | | - 'rd_title' => $rt->getDBkey(), |
171 | | - 'rd_fragment' => $rt->getFragment(), |
172 | | - 'rd_interwiki' => $rt->getInterwiki(), |
| 168 | + 'rd_from' => $this->getId(), |
| 169 | + 'rd_namespace' => $rt->getNamespace(), |
| 170 | + 'rd_title' => $rt->getDBkey(), |
| 171 | + 'rd_fragment' => $rt->getFragment(), |
| 172 | + 'rd_interwiki' => $rt->getInterwiki(), |
173 | 173 | ), |
174 | 174 | __METHOD__ |
175 | 175 | ); |
— | — | @@ -799,7 +799,7 @@ |
800 | 800 | * |
801 | 801 | * @param $dbw DatabaseBase: object |
802 | 802 | * @param $revision Revision: For ID number, and text used to set |
803 | | - length and redirect status fields |
| 803 | + * length and redirect status fields |
804 | 804 | * @param $lastRevision Integer: if given, will not overwrite the page field |
805 | 805 | * when different from the currently set value. |
806 | 806 | * Giving 0 indicates the new page flag should be set |
— | — | @@ -1030,7 +1030,7 @@ |
1031 | 1031 | * Fill in blank summaries with generated text where possible |
1032 | 1032 | * |
1033 | 1033 | * If neither EDIT_NEW nor EDIT_UPDATE is specified, the status of the article will be detected. |
1034 | | - * If EDIT_UPDATE is specified and the article doesn't exist, the function will an |
| 1034 | + * If EDIT_UPDATE is specified and the article doesn't exist, the function will return an |
1035 | 1035 | * edit-gone-missing error. If EDIT_NEW is specified and the article does exist, an |
1036 | 1036 | * edit-already-exists error will be returned. These two conditions are also possible with |
1037 | 1037 | * auto-detection due to MediaWiki's performance-optimised locking strategy. |
— | — | @@ -1806,7 +1806,7 @@ |
1807 | 1807 | * and return value documentation |
1808 | 1808 | * |
1809 | 1809 | * NOTE: This function does NOT check ANY permissions, it just commits the |
1810 | | - * rollback to the DB Therefore, you should only call this function direct- |
| 1810 | + * rollback to the DB. Therefore, you should only call this function direct- |
1811 | 1811 | * ly if you want to use custom permissions checks. If you don't, use |
1812 | 1812 | * doRollback() instead. |
1813 | 1813 | * @param $fromP String: Name of the user whose edits to rollback. |