Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make the --- filter --- text in the dropdown translatable
  • Loading branch information
michield committed Jul 24, 2017
1 parent ea5d62e commit 4581e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public_html/lists/admin/messages.php
Expand Up @@ -5,6 +5,7 @@
$subselect = $whereClause = '';
$action_result = '';
$access = accessLevel('messages');
$filterSelectDefault = ' --- '.s('filter').' --- ';

$messageSortOptions = array(
'default' => s('Sort by'),
Expand Down Expand Up @@ -44,7 +45,7 @@
}
if (isset($_POST['filter'])) {
$_SESSION['messagefilter'] = removeXSS($_POST['filter']);
if ($_SESSION['messagefilter'] == ' --- filter --- ') {
if ($_SESSION['messagefilter'] == $filterSelectDefault) {
$_SESSION['messagefilter'] = '';
}
}
Expand Down Expand Up @@ -103,7 +104,7 @@

$filterDisplay = $_SESSION['messagefilter'];
if ($filterDisplay == '') {
$filterDisplay = ' --- filter --- ';
$filterDisplay = $filterSelectDefault;
}
echo '<div id="messagefilter" class="filterdiv fright">';
echo formStart(' id="messagefilterform" ');
Expand Down

0 comments on commit 4581e36

Please sign in to comment.