diff options
author | Michael Hamann <michael@content-space.de> | 2012-07-28 11:09:27 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2012-07-28 11:34:47 +0200 |
commit | 3e8e3ae62e43569a3dbe679e04d07744e045e472 (patch) | |
tree | 44a91682c28daed19184fd8ac9f446c7e7454c6a | |
parent | bd28297e917143628c2b78c5635c881864ce9d23 (diff) | |
download | rpg-3e8e3ae62e43569a3dbe679e04d07744e045e472.tar.gz rpg-3e8e3ae62e43569a3dbe679e04d07744e045e472.tar.bz2 |
Fix inconsistent return values in the indexer and in getInfo()
-rw-r--r-- | inc/indexer.php | 2 | ||||
-rw-r--r-- | lib/plugins/syntax.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php index 321940508..f22aee3a0 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -1036,7 +1036,7 @@ class Doku_Indexer { $fh = @fopen($cachename.'.tmp', 'w'); if (!$fh) { trigger_error("Failed to write index cache", E_USER_ERROR); - return; + return $lengths; } @fwrite($fh, implode("\n", $lengths)); @fclose($fh); diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index d4394eb6f..a68946a99 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -37,6 +37,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { $info = DOKU_PLUGIN.'/'.$parts[2].'/plugin.info.txt'; if(@file_exists($info)) return confToHash($info); trigger_error('getInfo() not implemented in '.get_class($this).' and '.$info.' not found', E_USER_WARNING); + return array(); } /** |