Skip to content
GitLab
Menu
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
87fefd21
Commit
87fefd21
authored
Dec 15, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 15, 2006
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git#master
parents
9fc5a6b6
3661f6c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/upgrade.php
View file @
87fefd21
...
...
@@ -71,7 +71,7 @@ function check_upgrades($name=null) {
$corerelease
=
get_config
(
'release'
);
if
(
isset
(
$config
->
minupgradefrom
)
&&
isset
(
$config
->
minupgraderelease
)
&&
$coreversion
<
$config
->
minupgradefrom
)
{
throw
new
SanityException
(
"Must upgrade to
$config->minupgradefrom
"
throw
new
Config
SanityException
(
"Must upgrade to
$config->minupgradefrom
"
.
"(
$config->minupgraderelease
) first "
.
" (you have
$coreversion
(
$corerelease
)"
);
}
...
...
@@ -160,6 +160,12 @@ function check_upgrades($name=null) {
.
" (
$config->minupgraderelease
) first "
.
" (you have
$pluginversion
(
$pluginrelease
))"
);
}
if
(
isset
(
$config
->
minupgradefrom
)
&&
isset
(
$config
->
minupgraderelease
)
&&
$pluginversion
<
$config
->
minupgradefrom
)
{
throw
new
ConfigSanityException
(
"Must upgrade to
$config->minupgradefrom
"
.
" (
$config->minupgraderelease
) first "
.
" (you have
$pluginversion
(
$pluginrelease
))"
);
}
$plugininfo
=
new
StdClass
;
$plugininfo
->
upgrade
=
true
;
$plugininfo
->
from
=
$pluginversion
;
...
...
@@ -181,6 +187,9 @@ function check_upgrades($name=null) {
return
$upgrade
;
}
$toupgrade
[
'disablelogin'
]
=
$disablelogin
;
if
(
count
(
$toupgrade
)
==
1
)
{
$toupgrade
=
array
();
}
return
$toupgrade
;
}
...
...
Write
Preview
Supports
Markdown
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