dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c2553
)
API: Fixing exception in ApiEditPage
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 30 Mar 2008 19:20:42 +0000
(19:20 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 30 Mar 2008 19:20:42 +0000
(19:20 +0000)
includes/api/ApiEditPage.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiEditPage.php
b/includes/api/ApiEditPage.php
index
e4a64fd
..
1f96122
100644
(file)
--- a/
includes/api/ApiEditPage.php
+++ b/
includes/api/ApiEditPage.php
@@
-123,6
+123,7
@@
class ApiEditPage extends ApiBase {
# Run hooks
# We need to fake $wgRequest for some of them
global $wgRequest;
+ $oldRequest = $wgRequest;
$wgRequest = $req;
$r = array();
if(!wfRunHooks('APIEditBeforeSave', array(&$ep, $ep->textbox1, &$r)))
@@
-136,6
+137,7
@@
class ApiEditPage extends ApiBase {
else
$this->dieUsageMsg(array('hookaborted'));
}
+ $wgRequest = $oldRequest;
# Do the actual save
$oldRevId = $articleObj->getRevIdFetched();