diff options
author | Christian Klinger | 2016-06-10 14:11:12 +0200 |
---|---|---|
committer | Christian Klinger | 2016-06-10 14:11:12 +0200 |
commit | 22e1116aba0d9be3db03f7bf969e642d941b3024 (patch) | |
tree | cf2d4603ffcf4410a3534ca14dcbe4df4235f792 /modules-available/dozmod | |
parent | fixed some minor things. (diff) | |
download | slx-admin-22e1116aba0d9be3db03f7bf969e642d941b3024.tar.gz slx-admin-22e1116aba0d9be3db03f7bf969e642d941b3024.tar.xz slx-admin-22e1116aba0d9be3db03f7bf969e642d941b3024.zip |
use Module:: instead of require
Diffstat (limited to 'modules-available/dozmod')
-rw-r--r-- | modules-available/dozmod/api.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/dozmod/api.inc.php b/modules-available/dozmod/api.inc.php index 6ff52c14..52c8dcfb 100644 --- a/modules-available/dozmod/api.inc.php +++ b/modules-available/dozmod/api.inc.php @@ -9,7 +9,10 @@ * **/ -require 'modules/locations/inc/location.inc.php'; + +if (!Module::isAvailable('locations')) { + die('require locations module'); +} define('LIST_URL', CONFIG_DOZMOD . '/vmchooser/list'); |