mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 11:32:52 +02:00
merge -r6236 from branch 2.1 (some odd stuff is going on - I couldn't use svn for merging ... had to do it manually)
multi view plugin can select inactive themes git-svn-id: http://piwigo.org/svn/trunk@6238 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user