Commit b4b2d377 authored by Steven Jones's avatar Steven Jones

Use dirname(__FILE__) instead of __DIR__

parent a674ddb7
......@@ -56,7 +56,7 @@ function db_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', __DIR__);
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}
......
......@@ -18,7 +18,7 @@ function dns_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', __DIR__);
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}
......
......@@ -27,7 +27,7 @@ function example_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', __DIR__);
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}
......
......@@ -14,7 +14,7 @@ function http_provision_register_autoload() {
static $loaded = FALSE;
if (!$loaded) {
$loaded = TRUE;
provision_autoload_register_prefix('Provision_', __DIR__);
provision_autoload_register_prefix('Provision_', dirname(__FILE__));
}
}
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment