mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 19:23:01 +02:00
feature 1502: bug corrected on guest setting page.
Remove $conf['default_theme'] from config file (useless). Check if theme is still installed in pwg_get_themes. git-svn-id: http://piwigo.org/svn/trunk@5306 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -686,6 +686,8 @@ function url_is_remote($url)
|
||||
*/
|
||||
function get_pwg_themes()
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$themes = array();
|
||||
|
||||
$query = '
|
||||
@@ -698,7 +700,10 @@ SELECT
|
||||
$result = pwg_query($query);
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$themes[ $row['id'] ] = $row['name'];
|
||||
if (file_exists($conf['themes_dir'].'/'.$row['name'].'/'.'themeconf.inc.php'))
|
||||
{
|
||||
$themes[ $row['id'] ] = $row['name'];
|
||||
}
|
||||
}
|
||||
|
||||
// plugins want remove some themes based on user status maybe?
|
||||
|
||||
Reference in New Issue
Block a user