From: pdontthink Date: Mon, 2 Oct 2006 12:26:26 +0000 (+0000) Subject: Abstract getting the default template X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c36e49ddd119c4619d8d1a333d319df494c5e614;p=squirrelmail.git Abstract getting the default template git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11805 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/signout.php b/src/signout.php index 15a7b644..e7082fe9 100644 --- a/src/signout.php +++ b/src/signout.php @@ -50,11 +50,7 @@ if ($signout_page) { * Recover, so that we don't get all kinds of errors in that situation. */ if ( !isset($oTemplate) || !is_object($oTemplate) ) { require_once(SM_PATH . 'class/template/Template.class.php'); - $aTemplateSet = (!isset($aTemplateSet) || !is_array($aTemplateSet) - ? array() : $aTemplateSet); - $templateset_default = ( !isset($templateset_default) ? 0 : $templateset_default ); - - $sTemplateID = !isset($aTemplateSet[$templateset_default]['ID']) ? 'default' : $aTemplateSet[$templateset_default]['ID']; + $sTemplateID = Template::get_default_template_set(); $icon_theme_path = !$use_icons ? NULL : Template::calculate_template_images_directory($sTemplateID); $oTemplate = Template::construct_template($sTemplateID);