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
integration
prechecker
Commits
c646b70d
Commit
c646b70d
authored
Sep 06, 2002
by
martin
Browse files
Added a new $release variable that shows the user-friendly version number
parent
7c6addde
Changes
3
Hide whitespace changes
Inline
Side-by-side
admin/index.php
View file @
c646b70d
...
...
@@ -80,7 +80,7 @@
$strdatabaseupgrades
=
get_string
(
"databaseupgrades"
);
print_header
(
$strdatabaseupgrades
,
$strdatabaseupgrades
,
$strdatabaseupgrades
);
if
(
insert_record
(
"config"
,
$dversion
))
{
notify
(
"You are currently using Moodle version
$version
"
);
notify
(
"You are currently using Moodle version
$release
(
$version
)
"
);
print_continue
(
"index.php"
);
die
;
}
else
{
...
...
@@ -94,6 +94,18 @@
}
}
// Updated human-readable release version if necessary
if
(
$drelease
=
get_field
(
"config"
,
"value"
,
"name"
,
"release"
))
{
if
(
$release
<>
$drelease
)
{
// Update the release version
set_field
(
"config"
,
"value"
,
"
$release
"
,
"name"
,
"release"
);
}
}
else
{
$drelease
->
name
=
"release"
;
$drelease
->
value
=
$release
;
insert_record
(
"config"
,
$drelease
);
}
// Find and check all modules and load them up or upgrade them if necessary
...
...
lib/moodlelib.php
View file @
c646b70d
...
...
@@ -53,9 +53,12 @@ function print_footer ($course=NULL) {
if
(
$course
)
{
if
(
$course
==
"home"
)
{
// special case for site home page - please do not remove
if
(
!
$dversion
=
get_field
(
"config"
,
"value"
,
"name"
,
"version"
))
{
$dversion
=
"
unknown!
"
;
$dversion
=
"
xxx
"
;
}
$homelink
=
"<P ALIGN=center><A TITLE=
\"
Version
$dversion
: Click to visit moodle.com
\"
HREF=
\"
http://moodle.com/
\"
>"
;
if
(
!
$drelease
=
get_field
(
"config"
,
"value"
,
"name"
,
"release"
))
{
$drelease
=
"xxx"
;
}
$homelink
=
"<P ALIGN=center><A TITLE=
\"
Moodle
$drelease
(
$dversion
)
\"
HREF=
\"
http://moodle.com/
\"
>"
;
$homelink
.
=
"<BR><IMG WIDTH=130 HEIGHT=19 SRC=
\"
pix/madewithmoodle2.gif
\"
BORDER=0></A></P>"
;
}
else
{
$homelink
=
"<A TARGET=_top HREF=
\"
$CFG->wwwroot
/course/view.php?id=
$course->id
\"
>
$course->shortname
</A>"
;
...
...
version.php
View file @
c646b70d
...
...
@@ -9,7 +9,8 @@
// Moodle installed, which can be compared against
// a previous version (see the "config" table).
//
// To do this, visit the "admin" page.
// To do this, visit the "admin" page or the site
// home page while logged in as an admin.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
...
...
@@ -17,7 +18,10 @@
// If there's something it cannot do itself, it
// will tell you what you need to do.
$version
=
2002090501
;
$version
=
2002090501
;
// The current version is a date (YYYYMMDDXX) where
// XX is a number that increments during the day
$release
=
"1.0.3.1"
;
// For humans only, not used for the upgrade process
function
upgrade_moodle
(
$oldversion
=
0
)
{
...
...
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