Ignore:
Timestamp:
Aug 24, 2009, 7:03:22 PM (15 years ago)
Author:
nikrou
Message:

Allow admin to change number of column
Use $confdir_thumbnail and $confprefix_thumbnail in ak_jquery-load.js for replace('thumbnail\/TN-', )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/include/akConfig.class.php

    r3764 r3791  
    4646      $this->config = $c;
    4747    }
     48
     49    $this->setDefaults();
    4850  }
    4951
     
    7779    return $menu;
    7880  }
     81
     82  private function setDefaults() {
     83    include_once $this->plugin_dir.'/default_values.inc.php';
     84
     85    foreach ($default_values as $key => $value) {
     86      if (empty($this->config[$key])) {
     87        $this->config[$key] = $value;
     88      }
     89    }
     90  }
    7991}
    8092?>
Note: See TracChangeset for help on using the changeset viewer.