Allow parenthesis before hasPerm in smarty templates
[platal.git] / classes / plcache.php
index 9558b01..b25a44c 100644 (file)
@@ -479,7 +479,7 @@ class PlMemcacheCache implements PlCacheBackend
         $value = $this->context->get($key);
         if ($value === false) {
             if (is_null($callback)) {
-                throw new PlNotFoundInCacheException($key);
+                throw new PlNotFoundInCacheException($key, $type);
             }
             $value = call_user_func_array($callback, $cbargs);
             $this->set($key, $type, $value, $expire);
@@ -503,5 +503,5 @@ class PlMemcacheCache implements PlCacheBackend
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>