From 437300ab26564a488f2b227c2bfeb564bf715b8d Mon Sep 17 00:00:00 2001 From: Sigurd Berg Svela Date: Tue, 21 Jan 2014 14:52:53 +0100 Subject: [PATCH] Fix relative path On WordPress instalations for example, the include path of each file is not necessarily the path to the given file. Adding __DIR__ will preven this from being a problem. --- Tests/_autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/_autoloader.php b/Tests/_autoloader.php index a1ac445..8eb55c1 100644 --- a/Tests/_autoloader.php +++ b/Tests/_autoloader.php @@ -2,5 +2,5 @@ require( '_SplClassLoader.php' ); -$loader = new SplClassLoader( 'Instagram', '../' ); +$loader = new SplClassLoader( 'Instagram', __DIR__ . '/../' ); $loader->register(); \ No newline at end of file