Skip to content

Commit bb20425

Browse files
committed
Update control_modules.class.php
1 parent 68368af commit bb20425

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/control_modules/control_modules.class.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,22 @@ function install($parent_name = "")
260260
if (file_exists($installedFile))
261261
@unlink($installedFile);
262262
startMeasure('Installing ' . $lst[$i]['FILENAME']);
263-
$url = BASE_URL . '/module/' . $lst[$i]['FILENAME'] . '.html';
263+
264264
if (!isset($_SERVER['REQUEST_METHOD'])) {
265265
echo 'Installing ' . $lst[$i]['FILENAME'] . " ...";
266266
}
267267
DebMes('Installing ' . $lst[$i]['FILENAME'] . " ...", 'reinstall');
268-
//$data = getURL($url); //
268+
//$url = BASE_URL . '/module/' . $lst[$i]['FILENAME'] . '.html';
269+
//$data = getURL($url);
270+
$data = callAPI('/api/module/'.$lst[$i]['FILENAME']);
271+
272+
/*
269273
include_once(DIR_MODULES . $lst[$i]['FILENAME'] . "/" . $lst[$i]['FILENAME'] . ".class.php");
270274
$obj = "\$object$i";
271275
$code = "$obj=new " . $lst[$i]['FILENAME'] . ";\n";
272276
//echo "Installing ".$lst[$i]['FILENAME']."\n";
273277
@eval("$code");
278+
*/
274279

275280
endMeasure('Installing ' . $lst[$i]['FILENAME']);
276281
if (!isset($_SERVER['REQUEST_METHOD'])) {

0 commit comments

Comments
 (0)