mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +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)
|
||||
{
|
||||
|
||||
@@ -794,7 +794,7 @@ function add_config_r($configs)
|
||||
|
||||
function update_config($name, $value, $escape = true, $group = false)
|
||||
{
|
||||
global $SQL, $dbprefix, $d_groups, $userinfo;
|
||||
global $SQL, $dbprefix, $d_groups, $userinfo, $config;
|
||||
|
||||
$value = $escape ? $SQL->escape($value) : $value;
|
||||
$table = "{$dbprefix}config";
|
||||
|
||||
Reference in New Issue
Block a user