@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | Router::create()->dispatch(); |
| 15 | 15 | |
| 16 | -}catch(Exception $er){ |
|
| 16 | +} catch(Exception $er){ |
|
| 17 | 17 | |
| 18 | 18 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
| 19 | 19 | |
@@ -114,10 +114,10 @@ |
||
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | 116 | if(!file_exists($this->path . DIRECTORY_SEPARATOR . $tpl . '.tpl.php')){ |
| 117 | - $_SESSION['data'] = unserialize($_SESSION['data']); |
|
| 118 | - $_SESSION['data']['title'] = 'Arquivo tpl não localizado:'; |
|
| 119 | - $_SESSION['data']['message'] = 'Import \''.str_replace(['@import(\'','\')'],'',$import).'\' não encontrado.'; |
|
| 120 | - throw new \Exception('Import \''.str_replace(['@import(\'','\')'],'',$import).'\' não encontrado.'); |
|
| 117 | + $_SESSION['data'] = unserialize($_SESSION['data']); |
|
| 118 | + $_SESSION['data']['title'] = 'Arquivo tpl não localizado:'; |
|
| 119 | + $_SESSION['data']['message'] = 'Import \''.str_replace(['@import(\'','\')'],'',$import).'\' não encontrado.'; |
|
| 120 | + throw new \Exception('Import \''.str_replace(['@import(\'','\')'],'',$import).'\' não encontrado.'); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | try{ |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | |
| 123 | 123 | try{ |
| 124 | 124 | $buffer_tpl = $this->getOB($this->path . DIRECTORY_SEPARATOR . $tpl . '.tpl.php'); |
| 125 | - }catch(\Exception $er){ |
|
| 125 | + } catch(\Exception $er){ |
|
| 126 | 126 | var_dump($er); |
| 127 | 127 | die(); |
| 128 | 128 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | if(is_null($return)){ |
| 48 | 48 | echo $buffer; |
| 49 | - }else{ |
|
| 49 | + } else{ |
|
| 50 | 50 | return $buffer; |
| 51 | 51 | } |
| 52 | 52 | |