mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
feature 1630: upgrade to Piwigo 2.1 :-)
bug 1604: only activate core themes not all themes. git-svn-id: http://piwigo.org/svn/trunk@5982 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -694,7 +694,7 @@ SELECT
|
||||
$result = pwg_query($query);
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
if (file_exists($conf['themes_dir'].'/'.$row['id'].'/'.'themeconf.inc.php'))
|
||||
if (check_theme_installed($row['id']))
|
||||
{
|
||||
$themes[ $row['id'] ] = $row['name'];
|
||||
}
|
||||
@@ -706,6 +706,13 @@ SELECT
|
||||
return $themes;
|
||||
}
|
||||
|
||||
function check_theme_installed($theme_id)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
return file_exists($conf['themes_dir'].'/'.$theme_id.'/'.'themeconf.inc.php');
|
||||
}
|
||||
|
||||
/* Returns the PATH to the thumbnail to be displayed. If the element does not
|
||||
* have a thumbnail, the default mime image path is returned. The PATH can be
|
||||
* used in the php script, but not sent to the browser.
|
||||
@@ -1148,8 +1155,12 @@ function get_filter_page_value($value_name)
|
||||
*/
|
||||
function get_pwg_charset()
|
||||
{
|
||||
defined('PWG_CHARSET') or fatal_error('PWG_CHARSET undefined');
|
||||
return PWG_CHARSET;
|
||||
$pwg_charset = 'utf-8';
|
||||
if (defined('PWG_CHARSET'))
|
||||
{
|
||||
$pwg_charset = PWG_CHARSET;
|
||||
}
|
||||
return $pwg_charset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user