Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Moodle version.

Moodle version: Difference between revisions

From MoodleDocs
(Add notification page and version # screen shot from 1.8.2)
(changing Settings to Administration)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Moodle 1.8}}
{{Managing a Moodle site}}[[Image:moodleversion.png|thumb|Moodle version with (build number) and copyright]]
The [[Site administration block]] and the Notification link will show a site's current Moodle version.  The example below came from demo.moodle.org when it was version 200721520, which is also known as "Moodle 1.8.2+" branch on the [[Roadmap]].
The version of Moodle which your site is using can be found if you login as an administrator and go to ''Administration > Site administration > Notifications''.
[[Image:Moodle_Version_Notification_Page.JPG|frame|center|Moodle Version with (build number) and copyright]]
==Logo hover==
[[Image:MoodleVersionPopup.jpg|Version popup over Moodle logo|right]]
Often one sees references to differences in different Moodle versions. How can one see which version is  on a certain site?


'''Hover over the Moodle logo''': On many Moodle sites (it depends on the how customised the theme is) you can hover the mouse over the Moodle logo at the bottom of the page and you'll see the exact release version.
If you are a regular teacher with no admin access, you might be able to find your Moodle version by clicking on "Moodle docs for this page" at the bottom of any Moodle page when logged in. If your admin  has allowed this link to display, you should be taken to the documentation for your version of Moodle. Look at the number in the URL -eg 24, 23.


==Administrator page==
For a list of all past Moodle versions, see [[:dev:Releases]].
In earlier versions of Moodle, Administrators can see the exact version at the bottom of the main admin screen.


==Php file==
==Version.php file==
'''Version.php''': You can also view version information by opening the moodle/version.php file in your text editor. Here is a typical version.php:
Your exact Moodle version may be obtained by viewing the file ''moodle/version.php'' 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 23: 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


?>
?>
</pre>
</pre>


:'''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.
 
IF you have system administrator level of account, you can also use the Site administration block => Server => Environment and it will show ou which Moodle 2.x code base you are using.
 
==See also==
 
* MDL-26852 No way provided for users to determine Moodle build information


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

Latest revision as of 15:45, 19 April 2013

Moodle version with (build number) and copyright

The version of Moodle which your site is using can be found if you login as an administrator and go to Administration > Site administration > Notifications.

If you are a regular teacher with no admin access, you might be able to find your Moodle version by clicking on "Moodle docs for this page" at the bottom of any Moodle page when logged in. If your admin has allowed this link to display, you should be taken to the documentation for your version of Moodle. Look at the number in the URL -eg 24, 23.

For a list of all past Moodle versions, see dev:Releases.

Version.php file

Your exact Moodle version may be obtained by viewing the file moodle/version.php 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.

IF you have system administrator level of account, you can also use the Site administration block => Server => Environment and it will show ou which Moodle 2.x code base you are using.

See also

  • MDL-26852 No way provided for users to determine Moodle build information