summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr1.patch
blob: 27e5d882d1d55d37aa89817c834a49d71409eaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 8933621df1d2bca67701f24f4325254cf7fccd13 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@famillecollet.com>
Date: Thu, 2 Jul 2015 14:38:26 +0200
Subject: [PATCH] Fix autoloader

---
 resources/autoload.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/autoload.php b/resources/autoload.php
index 840c889..fdb5a6e 100644
--- a/resources/autoload.php
+++ b/resources/autoload.php
@@ -22,7 +22,7 @@ function ($class) {
             return;
         }
         $relative_class = substr($class, $len);
-        $file = dirname(__DIR__).'/'.str_replace('\\', '/', $relative_class).'.php';
+        $file = dirname(dirname(__DIR__)).'/'.str_replace('\\', '/', $relative_class).'.php';
         if (file_exists($file)) {
             require $file;
         }