Ignore:
Timestamp:
Mar 13, 2010, 1:00:52 AM (14 years ago)
Author:
plg
Message:

feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

File:
1 edited

Legend:

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

    r5060 r5123  
    246246  $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
    247247
    248   list($user['template'], $user['theme']) = explode('/', $user['template']);
     248  // Check user theme
     249  if (!file_exists(PHPWG_ROOT_PATH.'themes/'.$user['theme'].'/themeconf.inc.php'))
     250  {
     251    $user['theme'] = $conf['default_theme'];
     252  }
    249253
    250254  return $user;
     
    842846 *
    843847 */
    844 function get_default_template()
    845 {
    846   return get_default_user_value('template', PHPWG_DEFAULT_TEMPLATE);
     848function get_default_theme()
     849{
     850  return get_default_user_value('theme', PHPWG_DEFAULT_TEMPLATE);
    847851}
    848852
Note: See TracChangeset for help on using the changeset viewer.