Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
76f9c9d2
Commit
76f9c9d2
authored
Dec 14, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Dec 14, 2015
Browse files
Merge "Allowing for phpunit test to warn about need install first"
parents
564f3e36
b8470848
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/init.php
View file @
76f9c9d2
...
...
@@ -421,6 +421,9 @@ if ($siteclosed && !$USER->admin) {
// check to see if we're installed...
if
(
!
get_config
(
'installed'
))
{
ensure_install_sanity
();
if
(
defined
(
'TESTSRUNNING'
))
{
die
(
"Need to have Mahara installed before phpunit tests will run. Please install via 'php htdocs/admin/cli/install.php'"
);
}
$scriptfilename
=
str_replace
(
'\\'
,
'/'
,
$_SERVER
[
'SCRIPT_FILENAME'
]);
if
(
!
defined
(
'CLI'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment