mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Update version in plugins table during plugin activation.
git-svn-id: http://piwigo.org/svn/trunk@3205 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -109,7 +109,9 @@ INSERT INTO ' . PLUGINS_TABLE . ' (id,version) VALUES ("'
|
|||||||
if (empty($errors))
|
if (empty($errors))
|
||||||
{
|
{
|
||||||
$query = '
|
$query = '
|
||||||
UPDATE ' . PLUGINS_TABLE . ' SET state="active" WHERE id="' . $plugin_id . '"';
|
UPDATE ' . PLUGINS_TABLE . '
|
||||||
|
SET state="active", version="'.$this->fs_plugins[$plugin_id]['version'].'"
|
||||||
|
WHERE id="' . $plugin_id . '"';
|
||||||
pwg_query($query);
|
pwg_query($query);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user