/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1527)
1515 [':template_name'=>$this->template_name] 1516 ); 1517 } 1518 1519 /** 1520 * Get showpopups value from config or template configuration 1521 */ 1522 public function getshowpopups() 1523 { 1524 $config = (int) App()->getConfig('showpopups'); 1525 if ($config == 2) { 1526 if (isset($this->oOptions->showpopups)) { 1527 $this->showpopups = (int)$this->oOptions->showpopups; 1528 } else { 1529 $this->showpopups = 1; 1530 } 1531 } else { 1532 $this->showpopups = $config; 1533 } 1534 } 1535 1536 /** 1537 * Set each option key value to 'inherit' instead of having only one 'inherit' value for options. 1538 * Keys are fetched from parent xml configuration. 1539 */
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(162): TemplateConfiguration->getshowpopups() 157 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 158 $this->setMotherTemplates(); // Recursive mother templates configuration 159 $this->setThisTemplate(); // Set the main config values of this template 160 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 161 $this->removeFiles(); 162 $this->getshowpopups(); 163 164 if (!empty($sTemplateName) && !empty($iSurveyId)) { 165 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this; 166 } 167 return $this; |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/Template.php(505): TemplateConfig->prepareTemplateRendering("copie2_vanilla", null) 500 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 501 } 502 503 if ( empty(self::$instance) || ! self::isCorrectInstance($sTemplateName) ) { 504 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 505 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 506 } 507 508 return self::getLastInstance(false); 509 } 510 |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/themes.php(1202): Template::getInstance("copie2_vanilla", null, null, false) 1197 1198 $thissurvey['include_content'] = $sContentFile; 1199 1200 1201 // new TemplateConfiguration model created so preview can read theme options from DB 1202 $oTemplateForPreview = Template::getInstance($templatename, null, null, false); 1203 1204 try { 1205 $myoutput = Yii::app()->twigRenderer->renderTemplateForTemplateEditor( 1206 $sLayoutFile, 1207 array( |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/themes.php(522): themes->_initialise("copie2_vanilla", "welcome", "layout_global.twig", true, ...) 517 } 518 519 /* Keep Bootstrap Package clean after loading template : because template can update boostrap */ 520 $aBootstrapPackage = Yii::app()->clientScript->packages['bootstrap-admin']; 521 522 $aViewUrls = $this->_initialise($templatename, $screenname, $editfile, true, true); 523 524 App()->getClientScript()->reset(); 525 Yii::app()->clientScript->packages['bootstrap'] = $aBootstrapPackage; 526 App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts').'templates.js'); 527 App()->getClientScript()->registerPackage('ace'); |
#4 |
unknown(0): themes->index("", "welcome", "copie2_vanilla")
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themes, array("", "welcome", "copie2_vanilla")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(themes, ReflectionMethod, array("templatename" => "copie2_vanilla", "sa" => "view")) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/themes.php(33): Survey_Common_Action->runWithParams(array("templatename" => "copie2_vanilla", "sa" => "view")) 28 public function runWithParams($params) 29 { 30 31 $sTemplateName = Yii::app()->request->getPost('templatename', ''); 32 if (Permission::model()->hasGlobalPermission('templates', 'read') || Permission::model()->hasTemplatePermission($sTemplateName)) { 33 parent::runWithParams($params); 34 } else { 35 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 36 $this->getController()->redirect(array("admin/themeoptions")); 37 } 38 } |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): themes->runWithParams(array("templatename" => "copie2_vanilla", "sa" => "view")) 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; |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(themes) 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(); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(themes, 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); |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(180): CController->run("themes") 175 } 176 177 $this->runModuleController($action); 178 179 180 return parent::run($action); 181 } 182 183 /** 184 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 185 * |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): AdminController->run("themes") 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))); |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themes/sa/view") 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. |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 /** |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(182): CApplication->run() 177 require_once APPPATH . 'core/LSYii_Application' . EXT; 178 179 $config = require_once(APPPATH . 'config/internal' . EXT); 180 181 Yii::$enableIncludePath = false; 182 Yii::createApplication('LSYii_Application', $config)->run(); 183 184 /* End of file index.php */ 185 /* Location: ./index.php */ |