summaryrefslogtreecommitdiff
path: root/plugins/debug_logger
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-13 14:41:55 +0200
committerAleksander Machniak <alec@alec.pl>2014-10-13 14:41:55 +0200
commit0ea079d604ef1f34cc47646ab23176a3c66f16ee (patch)
treef32d974513f62e11e50c5ef7c5e8b2b24164ddf2 /plugins/debug_logger
parent94791f6fd5a0e742cda92c73bfb16fda00761850 (diff)
dirname(__FILE__) -> __DIR__
Diffstat (limited to 'plugins/debug_logger')
-rw-r--r--plugins/debug_logger/debug_logger.php8
-rw-r--r--plugins/debug_logger/tests/DebugLogger.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/debug_logger/debug_logger.php b/plugins/debug_logger/debug_logger.php
index 88237d767..07190e5a1 100644
--- a/plugins/debug_logger/debug_logger.php
+++ b/plugins/debug_logger/debug_logger.php
@@ -66,8 +66,8 @@ class debug_logger extends rcube_plugin
{
function init()
{
- require_once(dirname(__FILE__).'/runlog/runlog.php');
- $this->runlog = new runlog();
+ require_once(__DIR__ . '/runlog/runlog.php');
+ $this->runlog = new runlog();
if(!rcmail::get_instance()->config->get('log_dir')){
rcmail::get_instance()->config->set('log_dir',INSTALL_PATH.'logs');
@@ -83,10 +83,10 @@ class debug_logger extends rcube_plugin
$action = rcmail::get_instance()->action;
$task = rcmail::get_instance()->task;
if($action){
- $start_string .= "Action: ".$action.". ";
+ $start_string .= "Action: ".$action.". ";
}
if($task){
- $start_string .= "Task: ".$task.". ";
+ $start_string .= "Task: ".$task.". ";
}
$this->runlog->start($start_string);
diff --git a/plugins/debug_logger/tests/DebugLogger.php b/plugins/debug_logger/tests/DebugLogger.php
index de20a069d..8dd0c03fe 100644
--- a/plugins/debug_logger/tests/DebugLogger.php
+++ b/plugins/debug_logger/tests/DebugLogger.php
@@ -5,7 +5,7 @@ class DebugLogger_Plugin extends PHPUnit_Framework_TestCase
function setUp()
{
- include_once dirname(__FILE__) . '/../debug_logger.php';
+ include_once __DIR__ . '/../debug_logger.php';
}
/**