mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Add support for DESTDIR.
Former-commit-id: 0252a660a3d8250657cd5f7b8fcfd620172c8a65
This commit is contained in:
parent
c1536b7978
commit
d740b32810
@ -1438,7 +1438,13 @@ function enterprise_include($filename)
|
||||
global $config;
|
||||
|
||||
// Load enterprise extensions
|
||||
$filepath = realpath($config['homedir'].'/'.ENTERPRISE_DIR.'/'.$filename);
|
||||
if (defined('DESTDIR')) {
|
||||
$destdir = DESTDIR;
|
||||
} else {
|
||||
$destdir = '';
|
||||
}
|
||||
|
||||
$filepath = realpath($destdir.$config['homedir'].'/'.ENTERPRISE_DIR.'/'.$filename);
|
||||
|
||||
if ($filepath === false) {
|
||||
return ENTERPRISE_NOT_HOOK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user