mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
environment require disable mysql extension
This commit is contained in:
@@ -22,7 +22,7 @@ class PluginStore extends Model
|
||||
'description' => 'array',
|
||||
];
|
||||
|
||||
const PLUGIN_LIST_API = "https://nppl.nexusphp.workers.dev";
|
||||
const PLUGIN_LIST_API = "https://nexusphp.org/plugin-store";
|
||||
const BLOG_POST_INFO_API = "https://nexusphp.org/wp-json/wp/v2/posts/%d";
|
||||
const BLOG_POST_URL = "https://nexusphp.org/?p=%d";
|
||||
|
||||
@@ -98,7 +98,7 @@ class PluginStore extends Model
|
||||
} else {
|
||||
$log .= ", not_null";
|
||||
}
|
||||
do_log($log, 'debug');
|
||||
do_log($log);
|
||||
return self::$rows;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class PluginStore extends Model
|
||||
$count = 0;
|
||||
foreach ($list as $row) {
|
||||
$installedVersion = $enabled[$row['plugin_id']] ?? '';
|
||||
if ($installedVersion && version_compare($installedVersion, $row['version'], '<=')) {
|
||||
if ($installedVersion && version_compare($installedVersion, $row['version'], '<')) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user