diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/File_Structure_Test.php | 5 | ||||
-rw-r--r-- | core/views/admin_themes_preview.html.php | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/tests/File_Structure_Test.php b/core/tests/File_Structure_Test.php index 0779dea7..c1160b57 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -71,8 +71,9 @@ class File_Structure_Test extends Unit_Test_Case { "in file: {$file->getPathname()}"); } else if (preg_match("|\.php$|", $file->getPathname())) { $actual = $this->_get_preamble($file->getPathname()); - if (strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "index.php") { - // index.php allows direct access, so modify our expectations for the first line + if (strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "index.php" || + strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "installer/install.php") { + // index.php and installer.php allow direct access, so modify our expectations for them $index_expected = $expected; $index_expected[0] = "<?php"; $this->assert_equal($index_expected, $actual, "in file: {$file->getPathname()}"); diff --git a/core/views/admin_themes_preview.html.php b/core/views/admin_themes_preview.html.php index c31d4118..b29c2a48 100644 --- a/core/views/admin_themes_preview.html.php +++ b/core/views/admin_themes_preview.html.php @@ -1,3 +1,4 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> <h1> <?= t("Theme Preview: {{theme_name}}", array("theme_name" => $info->name)) ?> </h1> <iframe src="<?= $url ?>" style="width: 600px; height: 500px"></iframe> <p> |