*/ /** * @package Sitemap * @subpackage UserInterface */ class AdminSitemapView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { $ret = GalleryCoreApi::assertUserIsSiteAdministrator(); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } list ($ret, $moduleStatus) = GalleryCoreApi::fetchPluginStatus('module'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $template->setVariable('AdminSitemap', array('canRewrite' => !empty($moduleStatus['rewrite']['active']))); return array(null, array('body' => 'modules/sitemap/templates/AdminSitemap.tpl')); } } ?>