diff --git a/contrib/generate-dnstext.php b/contrib/generate-dnstext.php
index 23c84e270..ac75c729b 100755
--- a/contrib/generate-dnstext.php
+++ b/contrib/generate-dnstext.php
@@ -1,8 +1,9 @@
#!/usr/bin/env php
= "7")
echo("Config » ");
- if (!$_GET['optc']) {
+ if (!$vars['rev']) {
echo('");
} else {
- echo(" Latest");
+ echo(generate_link('Latest',array('page'=>'device','device'=>$device['device_id'],'tab'=>'showconfig')));
}
if (function_exists('svn_log')) {
@@ -40,10 +40,11 @@ if ($_SESSION['userlevel'] >= "7")
echo($sep);
$revlist[] = $svnlog["rev"];
- if ($_GET['optc'] == $svnlog["rev"]) { echo('"); }
$sep = " | ";
}
@@ -51,8 +52,8 @@ if ($_SESSION['userlevel'] >= "7")
print_optionbar_end();
- if (function_exists('svn_log') && in_array($_GET['optc'], $revlist)) {
- list($diff, $errors) = svn_diff($file, $_GET['optc']-1, $file, $_GET['optc']);
+ if (function_exists('svn_log') && in_array($vars['rev'], $revlist)) {
+ list($diff, $errors) = svn_diff($file, $vars['rev']-1, $file, $vars['rev']);
if (!$diff) {
$text = "No Difference";
} else {
@@ -85,4 +86,4 @@ if ($_SESSION['userlevel'] >= "7")
#$geshi->set_line_style('color: #999999');
echo($geshi->parse_code());
}
-?>
\ No newline at end of file
+?>