diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-10-13 14:41:55 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-10-13 14:41:55 +0200 |
commit | 0ea079d604ef1f34cc47646ab23176a3c66f16ee (patch) | |
tree | f32d974513f62e11e50c5ef7c5e8b2b24164ddf2 /plugins/example_addressbook | |
parent | 94791f6fd5a0e742cda92c73bfb16fda00761850 (diff) |
dirname(__FILE__) -> __DIR__
Diffstat (limited to 'plugins/example_addressbook')
-rw-r--r-- | plugins/example_addressbook/example_addressbook.php | 2 | ||||
-rw-r--r-- | plugins/example_addressbook/tests/ExampleAddressbook.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/example_addressbook/example_addressbook.php b/plugins/example_addressbook/example_addressbook.php index 31077adf7..22e230c6f 100644 --- a/plugins/example_addressbook/example_addressbook.php +++ b/plugins/example_addressbook/example_addressbook.php @@ -1,6 +1,6 @@ <?php -require_once(dirname(__FILE__) . '/example_addressbook_backend.php'); +require_once(__DIR__ . '/example_addressbook_backend.php'); /** * Sample plugin to add a new address book diff --git a/plugins/example_addressbook/tests/ExampleAddressbook.php b/plugins/example_addressbook/tests/ExampleAddressbook.php index 4a54bd950..762ee7307 100644 --- a/plugins/example_addressbook/tests/ExampleAddressbook.php +++ b/plugins/example_addressbook/tests/ExampleAddressbook.php @@ -5,7 +5,7 @@ class ExampleAddressbook_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../example_addressbook.php'; + include_once __DIR__ . '/../example_addressbook.php'; } /** |