mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
Merge 57fb560ce1
into ee0d29a0e9
This commit is contained in:
commit
ff842baa6f
1 changed files with 13 additions and 0 deletions
|
@ -156,6 +156,14 @@ INSERT INTO '.THEMES_TABLE.'
|
|||
{
|
||||
conf_update_param('mobile_theme', $theme_id);
|
||||
}
|
||||
|
||||
// Trigger event with new theme list.
|
||||
$this->db_themes_by_id[$theme_id] = [
|
||||
'id' => $theme_id,
|
||||
'version' => $this->fs_themes[$theme_id]['version'],
|
||||
'name' => $this->fs_themes[$theme_id]['name'],
|
||||
];
|
||||
trigger_change('get_pwg_themes', $this->db_themes_by_id);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -209,6 +217,11 @@ DELETE
|
|||
{
|
||||
conf_update_param('mobile_theme', '');
|
||||
}
|
||||
|
||||
// Trigger event with new theme list.
|
||||
unset($this->db_themes_by_id[$theme_id]);
|
||||
trigger_change('get_pwg_themes', $this->db_themes_by_id);
|
||||
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue