Ignore:
Timestamp:
Mar 16, 2013, 8:16:38 PM (11 years ago)
Author:
mistic100
Message:

clean code and missing translation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/sets.php

    r18373 r21607  
    122122  );
    123123
    124 $template->assign('status_options', $page['status_items']);
    125 $template->assign('status_selected',
    126     isset($_POST['status']) ? $_POST['status'] : '');
     124$template->assign(array(
     125  'status_options' => $page['status_items'],
     126  'status_selected' => isset($_POST['status']) ? $_POST['status'] : '',
     127  'type_options' => $page['type_items'],
     128  'type_selected' => isset($_POST['type']) ? $_POST['type'] : '',
     129  'order_options' => $page['order_by_items'],
     130  'order_selected' => isset($_POST['order_by']) ? $_POST['order_by'] : '',
     131  'direction_options' => $page['direction_items'],
     132  'direction_selected' => isset($_POST['direction']) ? $_POST['direction'] : '',
    127133
    128 $template->assign('type_options', $page['type_items']);
    129 $template->assign('type_selected',
    130     isset($_POST['type']) ? $_POST['type'] : '');
    131 
    132 $template->assign('order_options', $page['order_by_items']);
    133 $template->assign('order_selected',
    134     isset($_POST['order_by']) ? $_POST['order_by'] : '');
    135 
    136 $template->assign('direction_options', $page['direction_items']);
    137 $template->assign('direction_selected',
    138     isset($_POST['direction']) ? $_POST['direction'] : '');
    139 
    140 
    141 $template->assign(array(
    142134  'F_USERNAME' => @htmlentities($_POST['username'], ENT_COMPAT, 'UTF-8'),
    143135  'F_FILTER_ACTION' => BATCH_DOWNLOAD_ADMIN . '-sets',
Note: See TracChangeset for help on using the changeset viewer.