/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateManifest.php(167)
155 /** 156 * Copy a file from mother template to local directory and edit manifest if needed 157 * 158 * @return string template url 159 */ 160 public function extendsFile($sFile) 161 { 162 if (!file_exists($this->path.$sFile) && !file_exists($this->viewPath.$sFile)) { 163 164 // Copy file from mother template to local directory 165 $sRfilePath = $this->getFilePath($sFile, $this); 166 $sLfilePath = (pathinfo($sFile, PATHINFO_EXTENSION) == 'twig') ? $this->viewPath.$sFile : $this->path.$sFile; 167 copy($sRfilePath, $sLfilePath); 168 169 // If it's a css or js file from config... must update DB and XML too.... 170 $sExt = pathinfo($sLfilePath, PATHINFO_EXTENSION); 171 if ($sExt == "css" || $sExt == "js") { 172 173 // Check if that CSS/JS file is in DB/XML 174 $aFiles = $this->getFilesForPackages($sExt, $this); 175 $sFile = str_replace('./', '', $sFile); 176 177 // The CSS/JS file is a configuration one.... 178 if (in_array($sFile, $aFiles)) { 179 $this->addFileReplacement($sFile, $sExt);
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateManifest.php(167): copy("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/theme...",
"/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/uploa...")
162 if (!file_exists($this->path.$sFile) && !file_exists($this->viewPath.$sFile)) { 163 164 // Copy file from mother template to local directory 165 $sRfilePath = $this->getFilePath($sFile, $this); 166 $sLfilePath = (pathinfo($sFile, PATHINFO_EXTENSION) == 'twig') ? $this->viewPath.$sFile : $this->path.$sFile; 167 copy($sRfilePath, $sLfilePath); 168 169 // If it's a css or js file from config... must update DB and XML too.... 170 $sExt = pathinfo($sLfilePath, PATHINFO_EXTENSION); 171 if ($sExt == "css" || $sExt == "js") { 172 |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/themes.php(639): TemplateManifest->extendsFile("subviews/header/head.twig") 634 $this->getController()->redirect(array("admin/themes/sa/upload")); 635 } 636 637 //$savefilename = $oEditedTemplate 638 if (!file_exists($oEditedTemplate->path.$relativePathEditfile) && !file_exists($oEditedTemplate->viewPath.$relativePathEditfile)) { 639 $oEditedTemplate->extendsFile($relativePathEditfile); 640 } 641 642 $savefilename = $oEditedTemplate->extendsFile($relativePathEditfile); 643 644 if (is_writable($savefilename)) { |
#2 |
unknown(0): themes->templatesavechanges()
|
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themes, array()) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themes, ReflectionMethod, array("sa" => "templatesavechanges")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/themes.php(31): Survey_Common_Action->runWithParams(array("sa" => "templatesavechanges")) 26 { 27 28 public function runWithParams($params) 29 { 30 if (Permission::model()->hasGlobalPermission('templates', 'read')) { 31 parent::runWithParams($params); 32 } else { 33 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 34 $this->getController()->redirect(array("admin/themeoptions")); 35 } 36 } |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CController.php(308): themes->runWithParams(array("sa" => "templatesavechanges")) 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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_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(); |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_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); |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/AdminController.php(158): CController->run("themes") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_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))); |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themes/sa/templatesavechanges") 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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_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 /** |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |