Changeset 5306


Ignore:
Timestamp:
Mar 24, 2010, 2:36:28 AM (14 years ago)
Author:
patdenice
Message:

feature 1502: bug corrected on guest setting page.
Remove $confdefault_theme from config file (useless).
Check if theme is still installed in pwg_get_themes.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/profile_content.tpl

    r5123 r5306  
    6060          <label for="template">{'Interface theme'|@translate}</label>
    6161        </span>
    62         {html_options id=template name=template options=$template_options selected=$template_selection}
     62        {html_options id=template name=theme options=$template_options selected=$template_selection}
    6363      </li>
    6464      <li>
  • trunk/include/config_default.inc.php

    r5239 r5306  
    335335// 'filename'
    336336$conf['uniqueness_mode'] = 'md5sum';
    337 
    338 // Define default theme for your gallery
    339 $conf['default_theme'] = 'Sylvia';
    340337
    341338// +-----------------------------------------------------------------------+
  • trunk/include/functions.inc.php

    r5211 r5306  
    687687function get_pwg_themes()
    688688{
     689  global $conf;
     690
    689691  $themes = array();
    690692
     
    699701  while ($row = pwg_db_fetch_assoc($result))
    700702  {
    701     $themes[ $row['id'] ] = $row['name'];
     703    if (file_exists($conf['themes_dir'].'/'.$row['name'].'/'.'themeconf.inc.php'))
     704    {
     705      $themes[ $row['id'] ] = $row['name'];
     706    }
    702707  }
    703708
Note: See TracChangeset for help on using the changeset viewer.