diff options
author | Marc Poulhiès <github@kataplop.net> | 2009-06-11 09:06:31 +0200 |
---|---|---|
committer | Marc Poulhiès <github@kataplop.net> | 2009-06-11 09:06:31 +0200 |
commit | 7815315dbf98f87c4e115a09cb116ac0bc4ca62e (patch) | |
tree | 700d62e41c666d282d3a7eb2287e187d841e45c0 /modules/gallery_unit_test | |
parent | 315969e24e3ce4cbf06e5160e4738c083b2338be (diff) | |
parent | 68fd196d66e2d21f571ff3b5a673f18cd129abf9 (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r-- | modules/gallery_unit_test/controllers/gallery_unit_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 56220a19..8f3353dc 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -23,6 +23,13 @@ class Gallery_Unit_Test_Controller extends Controller { print Kohana::show_404(); } + // Jump through some hoops to satisfy the way that we check for the site_domain in + // config.php. We structure this such that the code in config will leave us with a + // site_domain of "." (for historical reasons) + // @todo: for tests, we should force the site_domain to something like example.com + $_SERVER["SCRIPT_FILENAME"] = "index.php"; + $_SERVER["SCRIPT_NAME"] = "./index.php"; + $original_config = DOCROOT . "var/database.php"; $test_config = VARPATH . "database.php"; if (!file_exists($original_config)) { |