Browse code

Proper version handling instead of the original form. Variable was undefined, so every time the index was hit, the error log would get flooded with the same undefined variable message.

Clarissa Walker authored on 2015/09/10 19:41:49
Showing 2 changed files
... ...
@@ -394,10 +394,11 @@ if ($GLOBALS["countbytes"]) //stop count bytes variable
394 394
 	</tr></table></td></tr>
395 395
 <table>
396 396
 	<tr class="details">
397
-		<td align="left"><a href="http://www.rivetcode.com">RivetTracker</a>
397
+		<td align="left">
398 398
 		<?php
399 399
 		require("version.php");
400
-		print($version);
400
+		echo($id);
401
+		echo($version);
401 402
 		?>
402 403
 		</td>
403 404
 		<td align="right">
... ...
@@ -1,3 +1,4 @@
1 1
 <?php
2
-echo "Version: 1.05.1";
2
+$id = "<a href=\"http://www.rivetcode.com\">RivetTracker</a>";
3
+$version = "Version: 1.05.1";
3 4
 ?>
4 5
\ No newline at end of file