| @@ -70,16 +70,10 @@ | ||
| 70 | 70 | * put your comment there... |
| 71 | 71 | * |
| 72 | 72 | * @var mixed |
| 73 | 73 | */ |
| 74 | - protected $onloadtemplate = array | |
| 75 | - ( | |
| 76 | - 'parameters' => array | |
| 77 | - ( | |
| 78 | - 'content', | |
| 79 | - 'file', | |
| 80 | - 'dir', | |
| 81 | - ), | |
| 74 | + protected $onloadtemplate = array( | |
| 75 | + 'parameters' => array('content', 'file'), | |
| 82 | 76 | ); |
| 83 | 77 | |
| 84 | 78 | /** |
| 85 | 79 | * put your comment there... |
| @@ -248,9 +242,9 @@ | ||
| 248 | 242 | $templateFile = $this->getPath("{$dir}/{$name}{$extension}"); |
| 249 | 243 | // Get template content into variable. |
| 250 | 244 | ob_start(); |
| 251 | 245 | require $this->onimporttemplate($templateFile); |
| 252 | - $template = $this->onloadtemplate( ob_get_clean(), $name, "{$dir}/{$name}" ); | |
| 246 | + $template = $this->onloadtemplate(ob_get_clean(), $name); | |
| 253 | 247 | return $template; |
| 254 | 248 | } |
| 255 | 249 | |
| 256 | 250 | /** |