Line 162 in /srv/www/baq2012.org/public_html/sapphire/core/SSViewer.php
153 // flush template manifest cache if requested 154 if (isset($_GET['flush']) && $_GET['flush'] == 'all') { 155 if(Director::isDev() || Director::is_cli() || Permission::check('ADMIN')) { 156 self::flush_template_cache(); 157 } else { 158 return Security::permissionFailure(null, 'Please log in as an administrator to flush the template cache.'); 159 } 160 } 161 162 if(substr((string) $templateList,-3) == '.ss') { 163 $this->chosenTemplates['main'] = $templateList; 164 } else { 165 if(!is_array($templateList)) $templateList = array($templateList); 166 167 if(isset($_GET['debug_request'])) Debug::message("Selecting templates from the following list: " . implode(", ", $templateList)); 168