|
@@ -251,14 +251,14 @@ |
|
|
block discarded – undo |
|
251
|
251
|
$config = array_replace_recursive($this->load($this->getConfigFilename($this->fallbackLang)), $config); |
|
252
|
252
|
|
|
253
|
253
|
$compiled = "<?php class " . $this->prefix . " {\n" |
|
254
|
|
- . $this->compile($config) |
|
255
|
|
- . 'public static function __callStatic($string, $args) {' . "\n" |
|
256
|
|
- . ' return vsprintf(constant("self::" . $string), $args);' |
|
257
|
|
- . "\n}\n}\n" |
|
|
254
|
+ . $this->compile($config) |
|
|
255
|
+ . 'public static function __callStatic($string, $args) {' . "\n" |
|
|
256
|
+ . ' return vsprintf(constant("self::" . $string), $args);' |
|
|
257
|
+ . "\n}\n}\n" |
|
258
|
258
|
. $this->compileFunction(); |
|
259
|
259
|
|
|
260
|
|
- if( ! is_dir($this->cachePath)) |
|
261
|
|
- mkdir($this->cachePath, 0755, true); |
|
|
260
|
+ if( ! is_dir($this->cachePath)) |
|
|
261
|
+ mkdir($this->cachePath, 0755, true); |
|
262
|
262
|
|
|
263
|
263
|
if (file_put_contents($this->cacheFilePath, $compiled) === FALSE) { |
|
264
|
264
|
throw new \Exception("Could not write cache file to path '" . $this->cacheFilePath . "'. Is it writable?"); |
Please login to merge, or discard this patch.