diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-11 03:02:56 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-11 03:02:56 +0000 |
commit | 2bc890a4f0c5fece128bac735e01e3ca1dd852a5 (patch) | |
tree | d8caa63ad96490eb1a7021d986452948de793625 | |
parent | 431a831f48ed401e2e87e5f62399771ae7cb5d89 (diff) |
Don't use short tags in installer until we know its same to do so
-rw-r--r-- | installer/views/installer.html.php | 4 | ||||
-rw-r--r-- | installer/views/installer.txt.php | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/installer/views/installer.html.php b/installer/views/installer.html.php index ed372600..43692846 100644 --- a/installer/views/installer.html.php +++ b/installer/views/installer.html.php @@ -25,7 +25,7 @@ </head> <body> - <? foreach (self::$messages as $section) : ?> + <?php foreach (self::$messages as $section) : ?> <h1><?php print $section["header"] ?></h1> <p><?php print $section["description"] ?></p> @@ -44,6 +44,6 @@ <?php endforeach ?> </table> </div> - <? endforeach ?> + <?php endforeach ?> </body> </html>
\ No newline at end of file diff --git a/installer/views/installer.txt.php b/installer/views/installer.txt.php index e7dc155f..89af28d4 100644 --- a/installer/views/installer.txt.php +++ b/installer/views/installer.txt.php @@ -1,5 +1,5 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> -<? +<?php function green_start() { return "\x1B[32m"; } @@ -17,7 +17,7 @@ function magenta_start() { } function print_msg($header, $msg, $error) { - $format = "| %-21.21s | %-81.81s |\n"; + $format = "| %-21.21s | %-81.81s |\n"; foreach (explode("\n", wordwrap($msg, 72)) as $text) { if ($error) { printf($format, $header, red_start() . $text . color_end()); @@ -37,7 +37,7 @@ foreach (self::$messages as $section) { echo "+", str_repeat("-", 98), "+\n"; foreach ($section["msgs"] as $header => $msg) { - print_msg($header, $msg["text"], $msg["error"]); + print_msg($header, $msg["text"], $msg["error"]); } } |