Changeset 2040 for branches/branch-1_7/include
- Timestamp:
- Jun 21, 2007, 11:00:09 PM (17 years ago)
- Location:
- branches/branch-1_7/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/include/common.inc.php
r2031 r2040 172 172 173 173 // template instance 174 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] ); 174 if 175 ( 176 defined('IN_ADMIN') and IN_ADMIN and 177 isset($user['admin_template']) and 178 isset($user['admin_theme']) 179 ) 180 { 181 // Admin template 182 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['admin_template'], $user['admin_theme'] ); 183 } 184 else 185 { 186 // Classic template 187 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] ); 188 } 175 189 176 190 if ($conf['gallery_locked']) -
branches/branch-1_7/include/functions_user.inc.php
r1986 r2040 145 145 { 146 146 global $conf; 147 147 148 $user['id'] = $user_id; 148 149 $user = array_merge( $user, getuserdata($user_id, $use_cache) ); … … 153 154 $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; 154 155 155 // include template/theme configuration 156 if (defined('IN_ADMIN') and IN_ADMIN) 157 { 158 list($user['template'], $user['theme']) = 156 if (is_admin($user['status'])) 157 { 158 list($user['admin_template'], $user['admin_theme']) = 159 159 explode 160 160 ( … … 163 163 : $user['template'] 164 164 ); 165 // TODO : replace $conf['admin_layout'] by $user['admin_layout'] 166 } 167 else 168 { 169 list($user['template'], $user['theme']) = explode('/', $user['template']); 170 } 165 } 166 167 list($user['template'], $user['theme']) = explode('/', $user['template']); 171 168 172 169 return $user;
Note: See TracChangeset
for help on using the changeset viewer.