Now only define PHPWORD_BASE_PATH once

This commit is contained in:
Gabriel Bull 2013-12-13 09:07:50 -05:00
parent b6a5bf21b8
commit 5c6319f15b
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@
* @version 0.7.0
*/
define('PHPWORD_BASE_PATH', realpath(__DIR__ . '/../') . '/');
if (!defined('PHPWORD_BASE_PATH')) {
define('PHPWORD_BASE_PATH', realpath(__DIR__ . '/../') . '/');
}
/**
* Class PHPWord_Autoloader