|
@@ -406,6 +406,9 @@ function MLSearch()
|
|
|
{
|
|
|
global $txt, $scripturl, $context, $user_info, $modSettings, $smcFunc;
|
|
|
|
|
|
+ $context['page_title'] = $txt['mlist_search'];
|
|
|
+ $context['can_moderate_forum'] = allowedTo('moderate_forum');
|
|
|
+
|
|
|
// Can they search custom fields?
|
|
|
$request = $smcFunc['db_query']('', '
|
|
|
SELECT col_name, field_name, field_desc
|
|
@@ -464,8 +467,6 @@ function MLSearch()
|
|
|
}
|
|
|
|
|
|
// set up some things for use in the template
|
|
|
- $context['page_title'] = $txt['mlist_search'];
|
|
|
- $context['can_moderate_forum'] = allowedTo('moderate_forum');
|
|
|
$context['sort_direction'] = !isset($_REQUEST['desc']) ? 'up' : 'down';
|
|
|
$context['sort_by'] = $_REQUEST['sort'];
|
|
|
|