Skip to content

Commit

Permalink
Update install.php
Browse files Browse the repository at this point in the history
  • Loading branch information
webbird authored Feb 14, 2022
1 parent 67c5c90 commit 96ddae8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,17 @@
// install the droplet(s)
if(!defined('CAT_PATH')) {
try {
// workaround for problem with global $module_directory overwritten
// by functions.inc.php here
$orig_module_dir = $module_directory;
include __DIR__.'/droplets.functions.php';
$sDropletFile = __DIR__.'/droplets/getNewsItems.php';
if(is_readable($sDropletFile)){
if(importDropletFromFile($sDropletFile)){
echo 'Droplet <b>getNewsItems</b> installed successfully.<br>';
}
}
$sDropletFile = __DIR__.'/droplets/getNewsItems.php';
if(is_readable($sDropletFile)){
if(importDropletFromFile($sDropletFile)){
echo 'Droplet <b>getNewsItems</b> installed successfully.<br>';
}
}
$module_directory = $orig_module_dir;
} catch ( \Exception $e ) {}
} else {
CAT_Helper_Droplet::installDroplet(WB_PATH.'/modules/news_img/droplets/droplet_getNewsItems.zip');
Expand Down

0 comments on commit 96ddae8

Please sign in to comment.