Skip to content

Commit 3b3acfb

Browse files
committed
Remove realpath to enable xPDO usage in PHARs
The use of realpath in the xPDO class to define XPDO_CORE_PATH breaks xPDO usage when included in a PHAR archive.
1 parent 408419a commit 3b3acfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xPDO/xPDO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use xPDO\Om\xPDOQuery;
2525

2626
if (!defined('XPDO_CORE_PATH')) {
27-
$xpdo_core_path= strtr(realpath(dirname(__FILE__)), '\\', '/') . '/';
27+
$xpdo_core_path= strtr(dirname(__FILE__), '\\', '/') . '/';
2828
/**
2929
* @var string The full path to the xPDO root directory.
3030
*/

0 commit comments

Comments
 (0)