summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod
diff options
context:
space:
mode:
authorChristian Klinger2016-06-10 14:11:12 +0200
committerChristian Klinger2016-06-10 14:11:12 +0200
commit22e1116aba0d9be3db03f7bf969e642d941b3024 (patch)
treecf2d4603ffcf4410a3534ca14dcbe4df4235f792 /modules-available/dozmod
parentfixed some minor things. (diff)
downloadslx-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.php5
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');