mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature 1605: ability to forbid theme activation, needed for gally-default.
git-svn-id: http://piwigo.org/svn/trunk@5874 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -99,7 +99,14 @@ foreach ($themes->fs_themes as $theme_id => $fs_theme)
|
||||
else
|
||||
{
|
||||
// is the theme "activable" ?
|
||||
$fs_theme['activable'] = true;
|
||||
if (isset($fs_theme['activable']) and !$fs_theme['activable'])
|
||||
{
|
||||
$fs_theme['activate_tooltip'] = l10n('This theme was not designed to be directly activated');
|
||||
}
|
||||
else
|
||||
{
|
||||
$fs_theme['activable'] = true;
|
||||
}
|
||||
|
||||
$missing_parent = $themes->missing_parent_theme($theme_id);
|
||||
if (isset($missing_parent))
|
||||
|
||||
Reference in New Issue
Block a user