diff options
author | Aaron Schulz <aaron@users.mediawiki.org> | 2011-06-29 22:09:51 +0000 |
---|---|---|
committer | Aaron Schulz <aaron@users.mediawiki.org> | 2011-06-29 22:09:51 +0000 |
commit | 930ccf282c7889f8c6fbba67d7c64d7bbe5262ca (patch) | |
tree | 47390dd9972b80dc4a97244c3bd557c015680025 /includes/actions | |
parent | 1ddc07f845718df6411a32e7e27320b7ab23cf84 (diff) | |
download | mediawikicore-930ccf282c7889f8c6fbba67d7c64d7bbe5262ca.tar.gz mediawikicore-930ccf282c7889f8c6fbba67d7c64d7bbe5262ca.zip |
* Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiCategoryPage from CategoryPage.
* WikiPage functions/fields are "magically" part of Article when accessed for b/c. Magic is kind of ugly but there are too many callers to make breaking changes atm. Some functions are just wrappers for WikiPage ones (were magic won't work).
* Added newFromID() to each WikiPage subclass (works around pre-existing inheritance problem).
* Added Page class for convenient type hinting and changed hints from Article -> Page. This lets things use WikiPage objects without getting type errors.
* Updated FlaggedPage to extend WikiPage. Worked around getOldIdFromRequest().
* Added setTimestamp() to WikiPage and moved some timestamp setting code from ParserCache to Article.
* Removed ampersands from $dbw arguments.
* @TODO: dependency inject user objects for WikiPage
The idea is to migrate things to use WikiPage, as the run-of-the-mill "new Article()" call doesn't care about $oldid and $wgRequest. After that, Article, ImagePage, and CategoryPage can be rewritten as an Action class or something sane (a Viewer class of sorts).
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91123
Diffstat (limited to 'includes/actions')
-rw-r--r-- | includes/actions/CreditsAction.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index b5fbdefae25d..666e038b8d98 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -83,7 +83,7 @@ class CreditsAction extends FormlessAction { * @param $article Article object * @return String HTML */ - protected static function getAuthor( Article $article ) { + protected static function getAuthor( Page $article ) { global $wgLang; $user = User::newFromId( $article->getUser() ); |