aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/DeleteAction.php
diff options
context:
space:
mode:
authorHappy-melon <happy-melon@users.mediawiki.org>2011-06-03 11:04:49 +0000
committerHappy-melon <happy-melon@users.mediawiki.org>2011-06-03 11:04:49 +0000
commit295f513e8bfde3d6b378f6d6e39e5b448af2be03 (patch)
tree65777a76c99d6ab70809653061275a605f1bf98a /includes/actions/DeleteAction.php
parentf33f9ec7ee469cfda159bc299e6a7fd817ec4680 (diff)
downloadmediawikicore-295f513e8bfde3d6b378f6d6e39e5b448af2be03.tar.gz
mediawikicore-295f513e8bfde3d6b378f6d6e39e5b448af2be03.zip
More unpicking of r85288. I think this is all of the magic method calls, but they're very hard to grep for (part of the problem with them!), so let's leave the calls in with a wfDeprecated() for a while...
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89408
Diffstat (limited to 'includes/actions/DeleteAction.php')
-rw-r--r--includes/actions/DeleteAction.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/actions/DeleteAction.php b/includes/actions/DeleteAction.php
index 9f4d8cc05952..f0a3a9bc8bdf 100644
--- a/includes/actions/DeleteAction.php
+++ b/includes/actions/DeleteAction.php
@@ -236,7 +236,7 @@ class DeleteAction extends Action {
$data['Reason'] = (array)$data['Reason'];
$error = null;
- if ( !wfRunHooks( 'ArticleDelete', array( &$page, &$context->user, &$data['Reason'][0], &$error ) ) ) {
+ if ( !wfRunHooks( 'ArticleDelete', array( &$page, $context->getUser(), &$data['Reason'][0], &$error ) ) ) {
return $error;
}
@@ -376,7 +376,7 @@ class DeleteAction extends Action {
$dbw->commit();
}
- wfRunHooks( 'ArticleDeleteComplete', array( &$page, &$context->user, $data['Reason'][0], $id ) );
+ wfRunHooks( 'ArticleDeleteComplete', array( &$page, $context->getUser(), $data['Reason'][0], $id ) );
return true;
}