*
* @return boolean success flag
*/
- function prepare($args)
+ function prepare(array $args=array())
{
parent::prepare($args);
NOTICES_PER_PAGE + 1);
if($this->page > 1 && $this->notice->N == 0){
- // TRANS: Server error when page not found (404)
- $this->serverError(_('No such page.'),$code=404);
+ // TRANS: Client error when page not found (404)
+ $this->clientError(_('No such page.'), 404);
}
return true;
*
* @return void
*/
- function handle($args)
+ function handle(array $args=array())
{
parent::handle($args);
$this->showPage();
$this->elementEnd('div');
}
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
return true;
}