multi view plugin can select inactive themes
git-svn-id: http://piwigo.org/svn/branches/2.1@6236 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
00f81e9080
commit
e5ef8aeb4d
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ $users_html.= '</select>';
|
|||
// | templates |
|
||||
$my_theme = '';
|
||||
$themes_html='<select onchange="document.location = this.options[this.selectedIndex].value;">';
|
||||
foreach (get_pwg_themes() as $pwg_theme)
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');
|
||||
$themes = new themes();
|
||||
foreach ($themes->fs_themes as $pwg_theme => $fs_theme)
|
||||
{
|
||||
$selected = $pwg_theme == pwg_get_session_var( 'multiview_theme', $view_as_user['theme'] ) ? 'selected="selected"' : '';
|
||||
$my_theme = $selected == '' ? $my_theme : 'themes/'.$view_as_user['theme'];
|
||||
|
|
Loading…
Add table
Reference in a new issue