<?php
-
/**
* Documentation action.
*
*
* @return void
*/
-
function showPageTitle()
{
$this->element('h1', array('class' => 'entry-title'), $this->title());
*
* @return void.
*/
-
function showContentBlock()
{
$this->elementStart('div', array('id' => 'content', 'class' => 'hentry'));
*
* @return void
*/
-
function showContent()
{
$this->raw($this->output);
*
* @return boolean read-only flag (false)
*/
-
function isReadOnly($args)
{
return true;
$this->filename = $this->getFilename();
if (empty($this->filename)) {
- throw new ClientException(sprintf(_('No such document "%s"'), $this->title), 404);
+ // TRANS: Client exception thrown when requesting a document from the documentation that does not exist.
+ // TRANS: %s is the non-existing document.
+ throw new ClientException(sprintf(_('No such document "%s".'), $this->title), 404);
}
$c = file_get_contents($this->filename);