This commit is contained in:
bzick 2015-08-13 10:33:39 +03:00
parent d596c81b4c
commit 1363945716
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ use Fenom\Template;
*/
class Fenom
{
const VERSION = '2.7';
const VERSION = '2.8';
const REV = 1;
/* Actions */
const INLINE_COMPILER = 1;
@ -975,8 +975,8 @@ class Fenom
} else {
return $tpl;
}
} elseif ($this->_options & self::FORCE_COMPILE) {
return $this->compile($template, $this->_options & self::DISABLE_CACHE & ~self::FORCE_COMPILE, $options);
} elseif ($this->_options & (self::FORCE_COMPILE | self::DISABLE_CACHE)) {
return $this->compile($template, !($this->_options & self::DISABLE_CACHE), $options);
} else {
return $this->_storage[$key] = $this->_load($template, $options);
}