Skip to content
Snippets Groups Projects
Commit 3e8e3ae6 authored by Michael Hamann's avatar Michael Hamann
Browse files

Fix inconsistent return values in the indexer and in getInfo()

parent bd28297e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment