mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Issue/747 php notice when changing admin page theme (#774)
* Fixes#747 Only variables should be passed by reference * Fixes syntax
This commit is contained in:
committed by
Pierrick Le Gall
parent
c9ab538319
commit
943ab9d189
10
admin.php
10
admin.php
@@ -58,12 +58,14 @@ if (isset($_GET['plugins_new_order']))
|
||||
if (isset($_GET['change_theme']))
|
||||
{
|
||||
$admin_themes = array('roma', 'clear');
|
||||
$admin_theme_array = array($conf['admin_theme']);
|
||||
$result = array_diff(
|
||||
$admin_themes,
|
||||
$admin_theme_array
|
||||
);
|
||||
|
||||
$new_admin_theme = array_pop(
|
||||
array_diff(
|
||||
$admin_themes,
|
||||
array($conf['admin_theme'])
|
||||
)
|
||||
$result
|
||||
);
|
||||
|
||||
conf_update_param('admin_theme', $new_admin_theme);
|
||||
|
||||
Reference in New Issue
Block a user