Ignore:
Timestamp:
Apr 28, 2010, 4:28:05 PM (14 years ago)
Author:
plg
Message:

feature 1630: upgrade to Piwigo 2.1 :-)

bug 1604: only activate core themes not all themes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r5781 r5982  
    695695  while ($row = pwg_db_fetch_assoc($result))
    696696  {
    697     if (file_exists($conf['themes_dir'].'/'.$row['id'].'/'.'themeconf.inc.php'))
     697    if (check_theme_installed($row['id']))
    698698    {
    699699      $themes[ $row['id'] ] = $row['name'];
     
    705705
    706706  return $themes;
     707}
     708
     709function check_theme_installed($theme_id)
     710{
     711  global $conf;
     712
     713  return file_exists($conf['themes_dir'].'/'.$theme_id.'/'.'themeconf.inc.php');
    707714}
    708715
     
    11491156function get_pwg_charset()
    11501157{
    1151   defined('PWG_CHARSET') or fatal_error('PWG_CHARSET undefined');
    1152   return PWG_CHARSET;
     1158  $pwg_charset = 'utf-8';
     1159  if (defined('PWG_CHARSET'))
     1160  {
     1161    $pwg_charset = PWG_CHARSET;
     1162  }
     1163  return $pwg_charset;
    11531164}
    11541165
Note: See TracChangeset for help on using the changeset viewer.