/home/travelza/public_html/islandzakynthos.com/bookit/protected/modules/translate/components/MPTranslate.php(203)
191 $key=self::ID; 192 if(($language=@$this->_cache['language'])!==null) 193 return $language; 194 elseif(Yii::app()->getSession()->contains($key)) 195 $language=Yii::app()->getSession()->get($key); 196 elseif(isset($_POST[$key]) && !empty($_POST[$key])) 197 $language=$_POST[$key]; 198 elseif(isset($_GET[$key]) && !empty($_GET[$key])) 199 $language=$_GET[$key]; 200 else 201 $language=Yii::app()->getRequest()->getPreferredLanguage(); 202 203 if(!key_exists($language,$this->acceptedLanguages)){ 204 if($language===Yii::app()->sourceLanguage) 205 $language=$this->defaultLanguage; 206 elseif(strpos($language,"_")!==false){ 207 $language=substr($language,0,2); 208 if(!key_exists($language,$this->acceptedLanguages)) 209 $language=$this->defaultLanguage; 210 } 211 } 212 return $language; 213 } 214 /** 215 *
#0 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/protected/modules/translate/components/MPTranslate.php(203): key_exists(false, array()) 198 elseif(isset($_GET[$key]) && !empty($_GET[$key])) 199 $language=$_GET[$key]; 200 else 201 $language=Yii::app()->getRequest()->getPreferredLanguage(); 202 203 if(!key_exists($language,$this->acceptedLanguages)){ 204 if($language===Yii::app()->sourceLanguage) 205 $language=$this->defaultLanguage; 206 elseif(strpos($language,"_")!==false){ 207 $language=substr($language,0,2); 208 if(!key_exists($language,$this->acceptedLanguages)) |
#1 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/protected/modules/translate/components/MPTranslate.php(56): MPTranslate->getLanguage() 51 */ 52 function init(){ 53 if(empty($this->defaultLanguage)) 54 $this->defaultLanguage=Yii::app()->getLanguage(); 55 if($this->autoSetLanguage) 56 $this->setLanguage($this->getLanguage()); 57 if(!count($this->acceptedLanguages)){ 58 if(($sourceLanguage=Yii::app()->sourceLanguage)!==null) 59 $this->acceptedLanguages[$sourceLanguage]=$sourceLanguage; 60 if(($targetLanguage=Yii::app()->getLanguage())!=null) 61 $this->acceptedLanguages[$targetLanguage]=$targetLanguage; |
#2 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/framework/base/CModule.php(372): MPTranslate->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#3 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/framework/base/CModule.php(477): CModule->getComponent("translate") 472 * Loads static application components. 473 */ 474 protected function preloadComponents() 475 { 476 foreach($this->preload as $id) 477 $this->getComponent($id); 478 } 479 480 /** 481 * Preinitializes the module. 482 * This method is called at the beginning of the module constructor. |
#4 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/framework/base/CApplication.php(142): CModule->preloadComponents() 137 $this->initSystemHandlers(); 138 $this->registerCoreComponents(); 139 140 $this->configure($config); 141 $this->attachBehaviors($this->behaviors); 142 $this->preloadComponents(); 143 144 $this->init(); 145 } 146 147 |
#5 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/framework/YiiBase.php(128): CApplication->__construct(array("id" => "bookit", "name" => "BookIT Online Booking Service", "theme" => "classic", "language" => "en", ...)) 123 * @return mixed the application instance 124 * @since 1.0.10 125 */ 126 public static function createApplication($class,$config=null) 127 { 128 return new $class($config); 129 } 130 131 /** 132 * Returns the application singleton, null if the singleton has not been created yet. 133 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#6 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/framework/YiiBase.php(100): YiiBase::createApplication("CWebApplication", "/home/travelza/public_html/islandzakynthos.com/bookit/protected/...") 095 * If not, the directory will be defaulted to 'protected'. 096 * @return CWebApplication 097 */ 098 public static function createWebApplication($config=null) 099 { 100 return self::createApplication('CWebApplication',$config); 101 } 102 103 /** 104 * Creates a console application instance. 105 * @param mixed $config application configuration. |
#7 |
+
–
/home/travelza/public_html/islandzakynthos.com/bookit/index.php(15): YiiBase::createWebApplication("/home/travelza/public_html/islandzakynthos.com/bookit/protected/...") 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); 16 |