mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
fixes
This commit is contained in:
@@ -74,6 +74,11 @@ switch ($case):
|
||||
|
||||
while ($row = $SQL->fetch($result))
|
||||
{
|
||||
if(! file_exists(PATH . KLEEJA_PLUGINS_FOLDER . '/' . $row['plg_name'] . '/init.php'))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$installed_plugins[$row['plg_name']] = $row;
|
||||
|
||||
$installed_plugins[$row['plg_name']]['extra_info'] = Plugins::getInstance()->installed_plugin_info($row['plg_name']);
|
||||
@@ -84,6 +89,11 @@ switch ($case):
|
||||
? PATH . KLEEJA_PLUGINS_FOLDER . '/' . $row['plg_name'] . '/icon.png'
|
||||
: $STYLE_PATH_ADMIN . 'images/plugin.png';
|
||||
|
||||
$installed_plugins[$row['plg_name']]['has_settings_page'] = ! empty(
|
||||
$installed_plugins[$row['plg_name']]['extra_info']['settings_page']
|
||||
) && ! preg_match('/^https?:\/\//', $installed_plugins[$row['plg_name']]['extra_info']['settings_page']);
|
||||
|
||||
|
||||
foreach (['plugin_title', 'plugin_description'] as $localizedInfo)
|
||||
{
|
||||
if (is_array($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo]))
|
||||
@@ -588,9 +598,9 @@ switch ($case):
|
||||
$plugin_name_link = $store_plugins[$plugin_name]['url'];
|
||||
|
||||
$plugin_archive = FetchFile::make($plugin_name_link)
|
||||
->setDestinationPath(PATH . 'cache/' . $plugin_name . '.zip')
|
||||
->isBinaryFile(true)
|
||||
->get();
|
||||
->setDestinationPath(PATH . 'cache/' . $plugin_name . '.zip')
|
||||
->isBinaryFile(true)
|
||||
->get();
|
||||
|
||||
if ($plugin_archive)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user