aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Cache/CacheInstructions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Cache/CacheInstructions.php')
-rw-r--r--inc/Cache/CacheInstructions.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/Cache/CacheInstructions.php b/inc/Cache/CacheInstructions.php
index acd02abae..8bc72d976 100644
--- a/inc/Cache/CacheInstructions.php
+++ b/inc/Cache/CacheInstructions.php
@@ -5,9 +5,8 @@ namespace dokuwiki\Cache;
/**
* Caching of parser instructions
*/
-class CacheInstructions extends \dokuwiki\Cache\CacheParser
+class CacheInstructions extends CacheParser
{
-
/**
* @param string $id page id
* @param string $file source file for cache
@@ -26,7 +25,7 @@ class CacheInstructions extends \dokuwiki\Cache\CacheParser
public function retrieveCache($clean = true)
{
$contents = io_readFile($this->cache, false);
- return !empty($contents) ? unserialize($contents) : array();
+ return empty($contents) ? [] : unserialize($contents);
}
/**