dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git]
/
includes
/
actions
/
HistoryAction.php
diff --git
a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index
f3ef3b3
..
1e1bb39
100644
(file)
--- a/
includes/actions/HistoryAction.php
+++ b/
includes/actions/HistoryAction.php
@@
-139,6
+139,10
@@
class HistoryAction extends FormlessAction {
// Fail nicely if article doesn't exist.
if ( !$this->page->exists() ) {
// Fail nicely if article doesn't exist.
if ( !$this->page->exists() ) {
+ global $wgSend404Code;
+ if ( $wgSend404Code ) {
+ $out->setStatusCode( 404 );
+ }
$out->addWikiMsg( 'nohistory' );
# show deletion/move log if there is an entry
LogEventsList::showLogExtract(
$out->addWikiMsg( 'nohistory' );
# show deletion/move log if there is an entry
LogEventsList::showLogExtract(