diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-08-02 20:25:17 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-08-02 20:25:17 +0300 |
commit | e5d185e17e613b7a9737fc76310f1e78008f71ec (patch) | |
tree | b0437de06fdea2b4e00e560d145d90c780cc9c2f /inc/html.php | |
parent | 6dd095f599ed20044f98d324cda37bedd57b3d3e (diff) | |
download | rpg-e5d185e17e613b7a9737fc76310f1e78008f71ec.tar.gz rpg-e5d185e17e613b7a9737fc76310f1e78008f71ec.tar.bz2 |
issue #9 config option to disable media revisions, auth
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/inc/html.php b/inc/html.php index a225f8503..2b4e2835e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -626,11 +626,12 @@ function html_recent($first=0, $show_changes='both'){ * decide if this is the last page or is there another one. * This is the cheapest solution to get this information. */ - if ($show_changes == 'mediafiles') { + $flags = 0; + if ($show_changes == 'mediafiles' && $conf['mediarevisions']) { $flags = RECENTS_MEDIA_CHANGES; } elseif ($show_changes == 'pages') { $flags = 0; - } else { + } elseif ($conf['mediarevisions']) { $show_changes = 'both'; $flags = RECENTS_MEDIA_PAGES_MIXED; } @@ -656,18 +657,20 @@ function html_recent($first=0, $show_changes='both'){ $form->addHidden('do', 'recent'); $form->addHidden('id', $ID); - $form->addElement(form_makeListboxField( - 'show_changes', - array( - 'pages' => $lang['pages_changes'], - 'mediafiles' => $lang['media_changes'], - 'both' => $lang['both_changes']), - $show_changes, - $lang['changes_type'], - '','', - array('class'=>'quickselect'))); - - $form->addElement(form_makeButton('submit', 'recent', $lang['btn_apply'])); + if ($conf['mediarevisions']) { + $form->addElement(form_makeListboxField( + 'show_changes', + array( + 'pages' => $lang['pages_changes'], + 'mediafiles' => $lang['media_changes'], + 'both' => $lang['both_changes']), + $show_changes, + $lang['changes_type'], + '','', + array('class'=>'quickselect'))); + + $form->addElement(form_makeButton('submit', 'recent', $lang['btn_apply'])); + } $form->addElement(form_makeOpenTag('ul')); |