1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

admin news comments were displaying in reverse. added 'reverse=1' read/write parm to admin-ui.

This commit is contained in:
CaMer0n
2012-08-02 23:37:20 +00:00
parent bf450949db
commit 1601a07bba
3 changed files with 22 additions and 5 deletions

View File

@@ -4614,8 +4614,17 @@ class e_admin_form_ui extends e_form
{
case 'bool':
case 'boolean': //TODO modify description based on $val['parm]
$option['bool__'.$key.'__1'] = LAN_YES;
$option['bool__'.$key.'__0'] = LAN_NO;
if(vartrue($parms['reverse'])) // reverse true/false values;
{
$option['bool__'.$key.'__0'] = LAN_YES; // see newspost.php : news_allow_comments for an example.
$option['bool__'.$key.'__1'] = LAN_NO;
}
else
{
$option['bool__'.$key.'__1'] = LAN_YES;
$option['bool__'.$key.'__0'] = LAN_NO;
}
if($type == 'batch')
{
$option['boolreverse__'.$key] = LAN_BOOL_REVERSE;