mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 22:20:57 -04:00
TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode.
This commit is contained in:
@@ -122,7 +122,7 @@ $config['modules'] = array(
|
||||
THEMEPATH . 'admin_default'
|
||||
);
|
||||
|
||||
if (defined('TEST_MODE')) {
|
||||
if (TEST_MODE) {
|
||||
array_splice($config['modules'], 0, 0,
|
||||
array(MODPATH . 'gallery_unit_test',
|
||||
MODPATH . 'unit_test'));
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
class Gallery_Unit_Test_Controller extends Controller {
|
||||
function Index() {
|
||||
if (!defined('TEST_MODE')) {
|
||||
if (!TEST_MODE) {
|
||||
print Kohana::show_404();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user