Modified: trunk/htdocs/system/classes/options.php (5120 => 5121)
--- trunk/htdocs/system/classes/options.php 2011-05-12 00:45:50 UTC (rev 5120)
+++ trunk/htdocs/system/classes/options.php 2011-05-12 00:48:21 UTC (rev 5121)
@@ -217,6 +217,9 @@
'pagination' => 10,
'comments_require_id' => false,
);
+ if(Config::exists('default_options')) {
+ $this->options = array_merge($this->options, Config::get('default_options'));
+ }
$results = DB::get_results( 'SELECT name, value, type FROM {options}', array(), 'QueryRecord' );
foreach ( $results as $result ) {
if ( $result->type == 1 ) {
@@ -226,6 +229,9 @@
$this->options[$result->name] = $result->value;
}
}
+ if(Config::exists('static_options')) {
+ $this->options = array_merge($this->options, Config::get('static_options'));
+ }
}
/**