1
0

Try to fix the selection

This commit is contained in:
Garvin Hicking
2008-04-14 04:04:14 +00:00
parent 78f4dc4d2f
commit 67c3dc5c27

View File

@ -22,7 +22,7 @@ class serendipity_plugin_history extends serendipity_plugin
$propbag->add('description', PLUGIN_HISTORY_DESC); $propbag->add('description', PLUGIN_HISTORY_DESC);
$propbag->add('stackable', true); $propbag->add('stackable', true);
$propbag->add('author', 'Jannis Hermanns'); $propbag->add('author', 'Jannis Hermanns');
$propbag->add('version', '1.4'); $propbag->add('version', '1.5');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@ -97,25 +97,22 @@ class serendipity_plugin_history extends serendipity_plugin
$propbag->add('default', 5); $propbag->add('default', 5);
break; break;
case 'full': case 'full':
$propbag->add('type', 'select'); $propbag->add('type', 'boolean');
$propbag->add('name', PLUGIN_HISTORY_SHOWFULL); $propbag->add('name', PLUGIN_HISTORY_SHOWFULL);
$propbag->add('description', PLUGIN_HISTORY_SHOWFULL_DESC); $propbag->add('description', PLUGIN_HISTORY_SHOWFULL_DESC);
$propbag->add('select_values', array('false','true')); $propbag->add('default', false);
$propbag->add('default', 'false');
break; break;
case 'displaydate': case 'displaydate':
$propbag->add('type', 'select'); $propbag->add('type', 'boolean');
$propbag->add('name', PLUGIN_HISTORY_DISPLAYDATE); $propbag->add('name', PLUGIN_HISTORY_DISPLAYDATE);
$propbag->add('description', PLUGIN_HISTORY_DISPLAYDATE_DESC); $propbag->add('description', PLUGIN_HISTORY_DISPLAYDATE_DESC);
$propbag->add('select_values', array('false','true')); $propbag->add('default', true);
$propbag->add('default', 'true');
break; break;
case 'displayauthor': case 'displayauthor':
$propbag->add('type', 'select'); $propbag->add('type', 'boolean');
$propbag->add('name', PLUGIN_HISTORY_DISPLAYAUTHOR); $propbag->add('name', PLUGIN_HISTORY_DISPLAYAUTHOR);
$propbag->add('description', ''); $propbag->add('description', '');
$propbag->add('select_values', array('false','true')); $propbag->add('default', false);
$propbag->add('default', 'false');
break; break;
case 'dateformat': case 'dateformat':
$propbag->add('type', 'string'); $propbag->add('type', 'string');
@ -142,7 +139,7 @@ class serendipity_plugin_history extends serendipity_plugin
$specialage = $this->get_config('specialage'); $specialage = $this->get_config('specialage');
$displaydate = $this->get_config('displaydate', 'true'); $displaydate = $this->get_config('displaydate', 'true');
$dateformat = $this->get_config('dateformat'); $dateformat = $this->get_config('dateformat');
$full = ($this->get_config('full', 'false') != 'true') ? false : true; $full = serendipity_db_bool($this->get_config('full'));
$displayauthor = serendipity_db_bool($this->get_config('displayauthor', false)); $displayauthor = serendipity_db_bool($this->get_config('displayauthor', false));
if (!is_numeric($min_age) || $min_age < 0 || $specialage == 'year') { if (!is_numeric($min_age) || $min_age < 0 || $specialage == 'year') {