Changeset 6374


Ignore:
Timestamp:
May 26, 2010, 4:01:19 PM (11 years ago)
Author:
repie38
Message:

change var name for better compliance (thanks to P@t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/blancmontxl/themeconf.inc.php

    r6367 r6374  
    22/*
    33Theme Name: BlancMont XL
    4 Version: 2.1.c
     4Version: 2.1.d
    55Description: Night theme
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
     
    99*/
    1010
    11 global $config;
    12 $config = unserialize($conf['BlancmontXL']);
     11
     12$conf['BlancmontXL'] = unserialize($conf['BlancmontXL']);
    1313
    1414$themeconf = array(
    1515  'parent'      => 'default',
    1616  'local_head'  => 'local_head.tpl',
    17   'icon_dir'    => 'themes/blancmontxl/icon/'. $config['icon_dir']
     17  'icon_dir'    => 'themes/blancmontxl/icon/'. $conf['BlancmontXL']['icon_dir']
    1818);
    1919
     
    2222function set_bmxl_header()
    2323{
    24   global $page, $config, $template;
     24  global $page,$template,$conf;
    2525
    2626  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
    2727  {
    28     $header = isset($page['category']) ? $config['categories'] : $config['home'];
     28    $header = isset($page['category']) ? $conf['BlancmontXL']['categories'] : $conf['BlancmontXL']['home'];
    2929  }
    3030  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
    3131  {
    32     $header = $config['picture'];
     32    $header = $conf['BlancmontXL']['picture'];
    3333  }
    3434  else
    3535  {
    36     $header = $config['other'];
     36    $header = $conf['BlancmontXL']['other'];
    3737  }
    3838  $template->assign('display_bmxl_banner', $header);
Note: See TracChangeset for help on using the changeset viewer.