1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Fix pack.php to allow running from the downloader

This commit is contained in:
Starbeamrainbowlabs 2016-03-26 14:10:47 +00:00
parent 8ebc66b1e8
commit fc3f751eda

View file

@ -12,8 +12,13 @@ foreach($module_index as $module)
{ {
// If the module is optional, the module's id isn't present in the command line arguments, and the special 'all' module id wasn't passed in, skip it // If the module is optional, the module's id isn't present in the command line arguments, and the special 'all' module id wasn't passed in, skip it
if($module->optional && if($module->optional &&
(
isset($argv) &&
strrpos(implode(" ", $argv), $module->id) === false && strrpos(implode(" ", $argv), $module->id) === false &&
!in_array("all", $argv)) continue; !in_array("all", $argv)
)
)
continue;
$module_list[] = $module->id; $module_list[] = $module->id;
} }