Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
6f9b2def
Commit
6f9b2def
authored
Jun 26, 2009
by
Nigel McNie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move scriptfilename closer to where it's used. Silences cron bitching.
(cherry picked from commit
7d017d1d
)
parent
081a2346
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
htdocs/init.php
htdocs/init.php
+1
-1
No files found.
htdocs/init.php
View file @
6f9b2def
...
...
@@ -251,10 +251,10 @@ if (get_config('siteclosed')) {
}
// check to see if we're installed...
$scriptfilename
=
str_replace
(
'\\'
,
'/'
,
$_SERVER
[
'SCRIPT_FILENAME'
]);
if
(
!
get_config
(
'installed'
))
{
ensure_install_sanity
();
$scriptfilename
=
str_replace
(
'\\'
,
'/'
,
$_SERVER
[
'SCRIPT_FILENAME'
]);
if
(
false
===
strpos
(
$scriptfilename
,
'admin/index.php'
)
&&
false
===
strpos
(
$scriptfilename
,
'admin/upgrade.php'
)
&&
false
===
strpos
(
$scriptfilename
,
'admin/upgrade.json.php'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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