Skip to content

Commit 5c6319f

Browse files
author
Gabriel Bull
committed
Now only define PHPWORD_BASE_PATH once
1 parent b6a5bf2 commit 5c6319f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PHPWord/Autoloader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
* @version 0.7.0
2626
*/
2727

28-
define('PHPWORD_BASE_PATH', realpath(__DIR__ . '/../') . '/');
28+
if (!defined('PHPWORD_BASE_PATH')) {
29+
define('PHPWORD_BASE_PATH', realpath(__DIR__ . '/../') . '/');
30+
}
2931

3032
/**
3133
* Class PHPWord_Autoloader

0 commit comments

Comments
 (0)