|
From: Benjamin C. <bc...@us...> - 2001-12-10 13:42:06
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv31619
Modified Files:
bug.php
Log Message:
Move "Previous" and "Next" bug link text to the language files
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- bug.php 2001/12/07 14:36:23 1.66
+++ bug.php 2001/12/10 13:42:03 1.67
@@ -518,7 +518,7 @@
///
/// Grab the links for the previous and next bugs in the list
function prev_next_links($bugid, $pos) {
- global $q, $queryinfo;
+ global $q, $queryinfo, $STRING;
if (!isset($queryinfo['query']) || !$queryinfo['query']) {
return array('', '');
@@ -550,14 +550,17 @@
if ($pos) {
if ($firstid) {
- $prevlink = "<a href='bug.php?op=show&bugid=$firstid&pos=".($pos - 1).'\'>Previous</a>';
+ $prevlink = "<a href='bug.php?op=show&bugid=$firstid&pos=".($pos - 1).
+ '\'>'.$STRING['previous_bug'].'</a>';
}
if ($secondid) {
- $nextlink = "<a href='bug.php?op=show&bugid=$secondid&pos=".($pos + 1).'\'>Next</a>';
+ $nextlink = "<a href='bug.php?op=show&bugid=$secondid&pos=".($pos + 1).
+ '\'>'.$STRING['next_bug'].'</a>';
}
} else {
if ($firstid) {
- $nextlink = "<a href='bug.php?op=show&bugid=$firstid&pos=".($pos + 1).'\'>Next</a>';
+ $nextlink = "<a href='bug.php?op=show&bugid=$firstid&pos=".($pos + 1).
+ '\'>'.$STRING['next_bug'].'</a>';
}
}
|