summaryrefslogtreecommitdiff
path: root/lib/exe/indexer.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-12-09 20:11:00 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-12-09 20:11:00 +0100
commit61a4313f55c7e83e0b78c9c6a8eb2efb13ff0512 (patch)
treec7269ea61f5d4230a6f916dbabee4ce412e0a9fb /lib/exe/indexer.php
parent9a0ca2cfd8ac42895af3be2efbd2cab7e6d33578 (diff)
parent8702de7f7e170bddfdb622c393c3cac3446fd1c5 (diff)
downloadrpg-61a4313f55c7e83e0b78c9c6a8eb2efb13ff0512.tar.gz
rpg-61a4313f55c7e83e0b78c9c6a8eb2efb13ff0512.tar.bz2
Merge pull request #945 from splitbrain/scrutinizerissues
Scrutinizer issues and IXR library updates
Diffstat (limited to 'lib/exe/indexer.php')
-rw-r--r--lib/exe/indexer.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php
index 3ab117736..89c4b7cd0 100644
--- a/lib/exe/indexer.php
+++ b/lib/exe/indexer.php
@@ -51,8 +51,9 @@ exit;
/**
* Trims the recent changes cache (or imports the old changelog) as needed.
*
- * @param media_changes If the media changelog shall be trimmed instead of
- * the page changelog
+ * @param bool $media_changes If the media changelog shall be trimmed instead of
+ * the page changelog
+ * @return bool
*
* @author Ben Coburn <btcoburn@silicodon.net>
*/
@@ -83,7 +84,7 @@ function runTrimRecentChanges($media_changes = false) {
io_saveFile($fn.'_tmp', ''); // presave tmp as 2nd lock
$trim_time = time() - $conf['recent_days']*86400;
$out_lines = array();
-
+ $old_lines = array();
for ($i=0; $i<count($lines); $i++) {
$log = parseChangelogLine($lines[$i]);
if ($log === false) continue; // discard junk