@@ -32,9 +32,13 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function __call($_name,$value){ |
| 35 | - if(isset($value[0]) && !empty($value[0]) && is_array($value[0])) extract($value[0]); |
|
| 35 | + if(isset($value[0]) && !empty($value[0]) && is_array($value[0])) { |
|
| 36 | + extract($value[0]); |
|
| 37 | + } |
|
| 36 | 38 | $file = self::$config['paths']['widget'].'/'.self::$property.'/'.$_name.'.phtml'; |
| 37 | - if(is_file($file)) require($file); |
|
| 39 | + if(is_file($file)) { |
|
| 40 | + require($file); |
|
| 41 | + } |
|
| 38 | 42 | } |
| 39 | 43 | |
| 40 | 44 | } |