*/ /** * @package Rewrite * @subpackage UserInterface */ class FileNotFoundView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { global $gallery; $urlGenerator =& $gallery->getUrlGenerator(); $FileNotFound = array(); $FileNotFound['path'] = $urlGenerator->getCurrentUrlDir() . GalleryUtilities::getRequestVariables('path'); $template->setVariable('FileNotFound', $FileNotFound); header('HTTP/1.0 404 Not Found'); return array(GalleryStatus::success(), array('body' => 'modules/rewrite/templates/FileNotFound.tpl')); } } ?>