Indexes with no pages (blank paginator) now appear with no paginator!
(instead of [ ] )
Thanks, Chris!
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6474
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* Initialize paginator string chunks. */
$prv_str = '';
$nxt_str = '';
/* Initialize paginator string chunks. */
$prv_str = '';
$nxt_str = '';
$all_str = '';
$box = urlencode($box);
$all_str = '';
$box = urlencode($box);
. "TARGET=\"right\">" ._("Paginate") . '</A>';
}
. "TARGET=\"right\">" ._("Paginate") . '</A>';
}
- /* If necessary, compute the 'show all' string. */
- if (($prv_str != '') || ($nxt_str != '')) {
- $all_str = "<A HREF=\"right_main.php?PG_SHOWALL=1"
- . "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
- . "TARGET=\"right\">" . _("Show All") . '</A>';
- }
-
/* Put all the pieces of the paginator string together. */
/**
* Hairy code... But let's leave it like it is since I am not certain
/* Put all the pieces of the paginator string together. */
/**
* Hairy code... But let's leave it like it is since I am not certain
$result .= ($prv_str != '' ? $prv_str . $spc . $sep . $spc : '');
$result .= ($nxt_str != '' ? $nxt_str : '');
$result .= ']' . $spc ;
$result .= ($prv_str != '' ? $prv_str . $spc . $sep . $spc : '');
$result .= ($nxt_str != '' ? $nxt_str : '');
$result .= ']' . $spc ;
+
+ /* Compute the 'show all' string. */
+ $all_str = "<A HREF=\"right_main.php?PG_SHOWALL=1"
+ . "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
+ . "TARGET=\"right\">" . _("Show All") . '</A>';
- $result .= ($pg_str != '' ? $spc . '['.$pg_str.']' . $spc : '');
+
+ $result .= ($pg_str != '' ? $spc . '['.$spc.$pg_str.']' . $spc : '');
$result .= ($all_str != '' ? $spc . '['.$all_str.']' . $spc . $spc : '');
/* If the resulting string is blank, return a non-breaking space. */
$result .= ($all_str != '' ? $spc . '['.$all_str.']' . $spc . $spc : '');
/* If the resulting string is blank, return a non-breaking space. */