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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.