summaryrefslogtreecommitdiffstats
path: root/provision.inc
diff options
context:
space:
mode:
authorSteven Jones2011-11-06 22:20:09 (GMT)
committerSteven Jones2011-11-06 22:20:09 (GMT)
commitb4b2d377f81b9f3ec7d7125edc1580242b537893 (patch)
tree3ac87c99d34d282d30a30be686ed4cffe044ce92 /provision.inc
parenta674ddb740c158cc632383e81db4507be590d229 (diff)
Use dirname(__FILE__) instead of __DIR__
Diffstat (limited to 'provision.inc')
-rw-r--r--provision.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/provision.inc b/provision.inc
index d7f2e22..316454f 100644
--- a/provision.inc
+++ b/provision.inc
@@ -24,7 +24,7 @@ function provision_autoload() {
static $instance = NULL;
if (is_null($instance)) {
- require_once(__DIR__ . '/Symfony/Component/ClassLoader/UniversalClassLoader.php');
+ require_once(dirname(__FILE__) . '/Symfony/Component/ClassLoader/UniversalClassLoader.php');
$instance = new UniversalClassLoader();
// Activate the autoloader.
$instance->register();
@@ -68,7 +68,7 @@ function provision_autoload_register_prefix($prefix, $dir, $prepend = FALSE) {
}
// Add our prefix to the autoloader.
-provision_autoload_register_prefix('Provision_', __DIR__);
+provision_autoload_register_prefix('Provision_', dirname(__FILE__));
/**
* Return the directory containing the file a class is defined in.