Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Moodle version.

Moodle version: Difference between revisions

From MoodleDocs
m (added link to version history since that was what I was actually looking for)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Image:Moodle_Version_Notification_Page.JPG|thumb|Moodle version with (build number) and copyright]]
[[Image:Moodle_Version_Notification_Page.JPG|thumb|Moodle version with (build number) and copyright]]


See also: [[Moodle_version_history|Moodle version history]]
The version of Moodle which your site is using can be found on the notifications page (''Site Administration > Notifications'').


The version of Moodle which your site is using can be found on the notifications page (''Site Administration > Notifications'').
For a list of all past Moodle versions, see [[Moodle_version_history|Moodle version history]].


==Version.php file==
You can also view version information by opening ''moodle/version.php'' file in a text editor. Here is a typical ''version.php'':
You can also view version information by opening ''moodle/version.php'' file in a text editor. Here is a typical ''version.php'':


<pre>
<pre>
<?php
<?php


// MOODLE 1.6 VERSION INFORMATION
// MOODLE VERSION INFORMATION


// This file defines the current version of the core Moodle code being used.
// This file defines the current version of the core Moodle code being used.
Line 16: Line 18:
// whether upgrades should be performed (see lib/db/*.php)
// whether upgrades should be performed (see lib/db/*.php)


  $version = 2006050521; // YYYYMMDD   = date of the 1.6 branch (don't change)
    $version = 2007101580.00; // YYYYMMDD     = date of the 1.9 branch (don't change)
                          //        X = release number 1.6.[0,1,2,3...]
                              //        X     = release number 1.9.[0,1,2,3,4,5...]
                          //          Y = micro-increments between releases
                              //          Y.YY = micro-increments between releases


  $release = '1.6.2+';   // Human-friendly version name
    $release = '1.9.8+ (Build: 20100512)';     // Human-friendly version name


?>
?>
Line 27: Line 29:
Note: You cannot view the contents of version.php in your browser - you must use a text editor.
Note: You cannot view the contents of version.php in your browser - you must use a text editor.


== Discovering Version programmatically ==
The above variables are copied into the $CFG global object. If you are writing custom code for Moodle you can access $CFG->version and $CFG->release.
==Hover version function discontinued==
In earlier versions of Moodle, the version number was sometimes available (depending upon the theme used) by hovering over the Moodle logo on the front page. This functionality was removed in Moodle 1.9.7 onwards for security reasons.
In earlier versions of Moodle, the version number was sometimes available (depending upon the theme used) by hovering over the Moodle logo on the front page. This functionality was removed in Moodle 1.9.7 onwards for security reasons.


[[Category:FAQ]]
[[Category:FAQ]]
[[Category:Administrator]]
[[Category:Administrator]]

Latest revision as of 12:51, 14 May 2010

Moodle version with (build number) and copyright

The version of Moodle which your site is using can be found on the notifications page (Site Administration > Notifications).

For a list of all past Moodle versions, see Moodle version history.

Version.php file

You can also view version information by opening moodle/version.php file in a text editor. Here is a typical version.php:


<?php

// MOODLE VERSION INFORMATION

// This file defines the current version of the core Moodle code being used.
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

    $version = 2007101580.00; // YYYYMMDD      = date of the 1.9 branch (don't change)
                              //         X     = release number 1.9.[0,1,2,3,4,5...]
                              //          Y.YY = micro-increments between releases

    $release = '1.9.8+ (Build: 20100512)';     // Human-friendly version name

?>

Note: You cannot view the contents of version.php in your browser - you must use a text editor.

Discovering Version programmatically

The above variables are copied into the $CFG global object. If you are writing custom code for Moodle you can access $CFG->version and $CFG->release.

Hover version function discontinued

In earlier versions of Moodle, the version number was sometimes available (depending upon the theme used) by hovering over the Moodle logo on the front page. This functionality was removed in Moodle 1.9.7 onwards for security reasons.