/media/shnoulle/data/webdev/noplugin/application/models/TemplateConfig.php(1173)
1161 * @var $aSettings array array of local setting 1162 * @return array 1163 */ 1164 protected function changeMotherConfiguration($sType, $aSettings) 1165 { 1166 if (is_a($this->oMotherTemplate, 'TemplateConfiguration')) { 1167 // Check if each file exist in this template path 1168 // If the file exists in local template, we can remove it from mother template package. 1169 // Else, we must remove it from current package, and if it doesn't exist in mother template definition, 1170 // we must add it. 1171 // (and leave it in moter template definition if it already exists.) 1172 foreach ($aSettings as $key => $sFileName) { 1173 if (file_exists($this->path . $sFileName)) { 1174 App()->clientScript->removeFileFromPackage( 1175 $this->oMotherTemplate->sPackageName, 1176 $sType, 1177 $sFileName 1178 ); 1179 } else { 1180 // File doesn't exist locally, so it should be removed 1181 $key = array_search($sFileName, $aSettings); 1182 unset($aSettings[$key]); 1183 1184 $oRTemplate = self::getTemplateForAsset($sFileName, $this); 1185
#0 |
+
–
/media/shnoulle/data/webdev/noplugin/application/models/TemplateConfiguration.php(1708): TemplateConfig->changeMotherConfiguration("css", array(3 => array("css/variations/lumen.min.css"))) 1703 if ( 1704 App()->getConfig('force_xmlsettings_for_survey_rendering') || 1705 ($this->template instanceof Template && $this->template->extends) || 1706 !empty($this->config->metadata->extends) 1707 ) { 1708 $aCssFiles = $this->changeMotherConfiguration('css', $aCssFiles); 1709 $aJsFiles = $this->changeMotherConfiguration('js', $aJsFiles); 1710 } 1711 1712 //For fruity_twentythree surveytheme we completely replace the variation theme css file: 1713 $aCssFiles = $this->replaceVariationFilesWithRtl($aCssFiles); |
#1 |
+
–
/media/shnoulle/data/webdev/noplugin/application/models/TemplateConfiguration.php(1660): TemplateConfiguration->createTemplatePackage(TemplateConfiguration) 1655 } 1656 1657 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1658 $this->setMotherTemplates(); // Recursive mother templates configuration 1659 $this->setThisTemplate(); // Set the main config values of this template 1660 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1661 $this->removeFiles(); 1662 $this->getshowpopups(); 1663 1664 if (!empty($sTemplateName) && !empty($iSurveyId)) { 1665 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this; |
#2 |
+
–
/media/shnoulle/data/webdev/noplugin/application/models/Template.php(584): TemplateConfiguration->prepareTemplateRendering("extends_bootswatch", 982585) 579 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 580 } 581 582 if (empty(self::$instance) || ! self::isCorrectInstance($sTemplateName)) { 583 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 584 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 585 } 586 587 return self::getLastInstance(false); 588 } 589 |
#3 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/ThemeOptionsController.php(709): Template::getInstance("extends_bootswatch", 982585, 1) 704 * @return void 705 */ 706 private function updateCommon(TemplateConfiguration $model, int $sid = null, int $gsid = null) 707 { 708 /* init the template to current one if option use some twig function (imageSrc for example) mantis #14363 */ 709 $oTemplate = Template::model()->getInstance($model->template_name, $sid, $gsid); 710 711 $oModelWithInheritReplacement = TemplateConfiguration::model()->findByPk($model->id); 712 $aOptionAttributes = TemplateManifest::getOptionAttributes($oTemplate->path); 713 714 $oTemplate = $oModelWithInheritReplacement->prepareTemplateRendering($oModelWithInheritReplacement->template->name); // Fix empty file lists |
#4 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/ThemeOptionsController.php(351): ThemeOptionsController->updateCommon(TemplateConfiguration, 982585, 1) 346 $model->attributes = $_POST['TemplateConfiguration']; 347 if ($model->save()) { 348 App()->user->setFlash('success', gT('Theme options saved.')); 349 } 350 } 351 $this->updateCommon($model, $sid, $gsid); 352 } 353 354 /** 355 * Updates particular model. 356 * If update is successful, the browser will be redirected to the 'view' page. |
#5 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): ThemeOptionsController->actionUpdateSurvey() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#6 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "themeOptions/updateSurvey", "surveyid" => "982585", "gsid" => "1")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#7 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#9 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/LSBaseController.php(145): CController->run("updateSurvey") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * |
#10 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run("updateSurvey") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("themeOptions/updateSurvey") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#13 |
+
–
/media/shnoulle/data/webdev/noplugin/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |