Skip to content
Snippets Groups Projects
Commit 1ace11ea authored by Tim Roes's avatar Tim Roes
Browse files

Merge branch 'master' of https://github.com/splitbrain/dokuwiki

parents b2a3342a ff711734
No related branches found
No related tags found
No related merge requests found
......@@ -1436,7 +1436,7 @@ function html_edit_form($param) {
global $TEXT;
if ($param['target'] !== 'section') {
msg('No editor for edit target ' . $param['target'] . ' found.', -1);
msg('No editor for edit target ' . hsc($param['target']) . ' found.', -1);
}
$attr = array('tabindex'=>'1');
......
......@@ -55,6 +55,8 @@ exit;
function runTrimRecentChanges($media_changes = false) {
global $conf;
echo "runTrimRecentChanges($media_changes): started".NL;
$fn = ($media_changes ? $conf['media_changelog'] : $conf['changelog']);
// Trim the Recent Changes
......@@ -70,6 +72,7 @@ function runTrimRecentChanges($media_changes = false) {
if (count($lines)<=$conf['recent']) {
// nothing to trim
io_unlock($fn);
echo "runTrimRecentChanges($media_changes): finished".NL;
return false;
}
......@@ -91,6 +94,7 @@ function runTrimRecentChanges($media_changes = false) {
// nothing to trim
@unlink($fn.'_tmp');
io_unlock($fn);
echo "runTrimRecentChanges($media_changes): finished".NL;
return false;
}
......@@ -114,10 +118,12 @@ function runTrimRecentChanges($media_changes = false) {
} else {
io_unlock($fn);
}
echo "runTrimRecentChanges($media_changes): finished".NL;
return true;
}
// nothing done
echo "runTrimRecentChanges($media_changes): finished".NL;
return false;
}
......@@ -160,11 +166,12 @@ function runSitemapper(){
* @author Adrian Lang <lang@cosmocode.de>
*/
function sendDigest() {
echo 'sendDigest(): start'.NL;
echo 'sendDigest(): started'.NL;
global $ID;
global $conf;
if (!$conf['subscribers']) {
return;
echo 'sendDigest(): disabled'.NL;
return false;
}
$subscriptions = subscription_find($ID, array('style' => '(digest|list)',
'escaped' => true));
......@@ -243,6 +250,8 @@ function sendDigest() {
// restore current user info
$USERINFO = $olduinfo;
$_SERVER['REMOTE_USER'] = $olduser;
echo 'sendDigest(): finished'.NL;
return true;
}
/**
......
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