Skip to content

Commit dd477e3

Browse files
committed
Fix DokuWiki deprecation warnings
- action/editcommit.php: - remove obsolete require_once for action.php - comment dbglog(...) code lines Note: These did not yet have been replaced by DW Logger::debug(...) since this would break compatibility to DW releases before Igor - closes #86
1 parent 23da58a commit dd477e3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

action/editcommit.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t");
1414
if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
1515

16-
require_once DOKU_PLUGIN.'action.php';
1716
require_once dirname(__FILE__).'/../lib/Git.php';
1817
require_once dirname(__FILE__).'/../lib/GitBackedUtil.php';
1918

@@ -296,7 +295,7 @@ public function notify_command_success($repo_path, $cwd, $command) {
296295
*/
297296
public function notifyByMail($subject_id, $template_id, $template_replacements) {
298297
$ret = false;
299-
dbglog("GitBacked - notifyByMail: [subject_id=".$subject_id.", template_id=".$template_id.", template_replacements=".$template_replacements."]");
298+
//dbglog("GitBacked - notifyByMail: [subject_id=".$subject_id.", template_id=".$template_id.", template_replacements=".$template_replacements."]");
300299
if (!$this->isNotifyByEmailOnGitCommandError()) {
301300
return $ret;
302301
}
@@ -307,9 +306,9 @@ public function notifyByMail($subject_id, $template_id, $template_replacements)
307306

308307
$mailer = new \Mailer();
309308
$mailer->to($this->getEmailAddressOnErrorConfigured());
310-
dbglog("GitBacked - lang check['".$subject_id."']: ".$this->getLang($subject_id));
311-
dbglog("GitBacked - template text['".$template_id."']: ".$template_text);
312-
dbglog("GitBacked - template html['".$template_id."']: ".$template_html);
309+
//dbglog("GitBacked - lang check['".$subject_id."']: ".$this->getLang($subject_id));
310+
//dbglog("GitBacked - template text['".$template_id."']: ".$template_text);
311+
//dbglog("GitBacked - template html['".$template_id."']: ".$template_html);
313312
$mailer->subject($this->getLang($subject_id));
314313
$mailer->setBody($template_text, $template_replacements, null, $template_html);
315314
$ret = $mailer->send();

0 commit comments

Comments
 (0)