mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-05 21:12:52 +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))
|
||||
{
|
||||
$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);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user