Show
Ignore:
Timestamp:
05/08/07 16:40:42 (13 years ago)
Author:
ralle030583
Message:

All files (i hope i havent forgott something) was modified to use the the config in this way:
- config::get($key)
- config::del($key)
- config::set($key,value)

Exception Templates/Smarty?:
The templates still uses $config->get($key) and $config->set($key,$value) cause
it seems that smarty dont like the :: notification

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/forum_post/class.killsummarytable.php

    r212 r213  
    108108 
    109109        $sql = 'SELECT count(*) AS knb, scl_id, scl_class,'; 
    110         if (config::getConfig('ship_values')) 
     110        if (config::get('ship_values')) 
    111111        { 
    112112            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS kisk FROM kb3_kills kll 
     
    142142 
    143143        $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 
    144         if (config::getConfig('ship_values')) 
     144        if (config::get('ship_values')) 
    145145        { 
    146146            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS lisk FROM kb3_kills kll 
     
    401401 
    402402                // Build our Post 
    403                 $set_colours = unserialize(config::getConfig('forum_post_colours'));    //load colour settings 
     403                $set_colours = unserialize(config::get('forum_post_colours'));  //load colour settings 
    404404                if(!is_array($set_colours)) { $set_colours = array(); }                                 // if the settings have been reset create an empty array so as not to brake the code later on 
    405                 $set_styles = unserialize(config::getConfig('forum_post_styles'));              //load style settings 
     405                $set_styles = unserialize(config::get('forum_post_styles'));            //load style settings 
    406406                if(!is_array($set_styles)) { $set_styles = array(); }                                   // if the settings have been reset create an empty array so as not to brake the code later on 
    407                 $set_isk = config::getConfig('forum_post_isk',$_POST['isk']);                   // load isk setting 
     407                $set_isk = config::get('forum_post_isk',$_POST['isk']);                 // load isk setting 
    408408                 
    409409                //print_r($set_styles); 
     
    441441                $style_close = ""; 
    442442                }                
    443                 $order = config::getConfig('forum_post_order'); 
     443                $order = config::get('forum_post_order'); 
    444444                 
    445445                if($order == "first"){