forked from GNUsocial/gnu-social
Document 404 "Page not found" server error for translators.
This commit is contained in:
parent
53ac232f91
commit
d08fd8254a
@ -60,6 +60,7 @@ class AllAction extends ProfileAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->page > 1 && $this->notice->N == 0) {
|
if ($this->page > 1 && $this->notice->N == 0) {
|
||||||
|
// TRANS: Server error when page not found (404)
|
||||||
$this->serverError(_('No such page'), $code = 404);
|
$this->serverError(_('No such page'), $code = 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ class PublicAction extends Action
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->page > 1 && $this->notice->N == 0){
|
if($this->page > 1 && $this->notice->N == 0){
|
||||||
|
// TRANS: Server error when page not found (404)
|
||||||
$this->serverError(_('No such page'),$code=404);
|
$this->serverError(_('No such page'),$code=404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ class RepliesAction extends OwnerDesignAction
|
|||||||
NOTICES_PER_PAGE + 1);
|
NOTICES_PER_PAGE + 1);
|
||||||
|
|
||||||
if($this->page > 1 && $this->notice->N == 0){
|
if($this->page > 1 && $this->notice->N == 0){
|
||||||
|
// TRANS: Server error when page not found (404)
|
||||||
$this->serverError(_('No such page'),$code=404);
|
$this->serverError(_('No such page'),$code=404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +134,7 @@ class ShowfavoritesAction extends OwnerDesignAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->page > 1 && $this->notice->N == 0){
|
if($this->page > 1 && $this->notice->N == 0){
|
||||||
|
// TRANS: Server error when page not found (404)
|
||||||
$this->serverError(_('No such page'),$code=404);
|
$this->serverError(_('No such page'),$code=404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ class TagAction extends Action
|
|||||||
$this->notice = Notice_tag::getStream($this->tag, (($this->page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
|
$this->notice = Notice_tag::getStream($this->tag, (($this->page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
|
||||||
|
|
||||||
if($this->page > 1 && $this->notice->N == 0){
|
if($this->page > 1 && $this->notice->N == 0){
|
||||||
|
// TRANS: Server error when page not found (404)
|
||||||
$this->serverError(_('No such page'),$code=404);
|
$this->serverError(_('No such page'),$code=404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user