Error

Description

Using $this when not in object context

Source File

/protected/utils/Utilities.php (83)

0072: 
0073:             return preg_replace("/([^a-zA-Z0-9\-_])+/i","",substr(strtolower(str_replace($co,$naco,trim($string))),0,50));
0074: 
0075:     }
0076: 
0077:     public function simplify_text2($string) {
0078:     
0079:         
0080:     }
0081:     
0082:     public function getLang(){
0083: if(isset($this->Request['lang'])){
0084: $lang = LangRecord::finder()->findbyname($this->Request['lang']); 0085: if($lang!=NULL){ 0086: return $lang->id; 0087: }else{ 0088: return 1; 0089: } 0090: }else{ 0091: return 1; 0092: } 0093: } 0094: 0095: public function getCulture(){

Stack Trace

#0 /protected/layouts/Layout.php(12): Utilities::getLang()
#1 /framework_3_1_10/Web/UI/TControl.php(1270): Layout->onInit(NULL)
#2 /framework_3_1_10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Layout))
#3 /framework_3_1_10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Rejestracja))
#4 /framework_3_1_10/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Rejestracja))
#5 /framework_3_1_10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Rejestracja))
#6 /framework_3_1_10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#7 /framework_3_1_10/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#8 /framework_3_1_10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#9 /framework_3_1_10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#10 /framework_3_1_10/Web/Services/TPageService.php(444): TPageService->runPage(Object(Rejestracja), Array)
#11 /framework_3_1_10/TApplication.php(1095): TPageService->run()
#12 /framework_3_1_10/TApplication.php(382): TApplication->runService()
#13 /index.php(33): TApplication->run()
#14 {main}
2019-02-20 19:26 IdeaWebServer/0.83.183 (like Apache) PRADO/3.1.10