Moodle version: Difference between revisions

From MoodleDocs
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Managing a Moodle site}}[[Image:moodleversion.png|thumb|Moodle version with (build number) and copyright]]
{{Managing a Moodle site}}
The version of Moodle which your site is using can be found if you login as an administrator and go to ''Settings > Site administration > Notifications''.
==What version of Moodle am I using?==


For a list of all past Moodle versions, see [[:dev:Releases]].
The version of Moodle which your site is using can be found if you log in as an administrator and go to ''Site administration > Notifications''.
[[Image:moodleversion4.png|center|thumb|Moodle version info]]


==Version.php file==
==Finding the version of Moodle if you are not an admin==
Your exact Moodle version may be obtained by viewing the file ''moodle/version.php'' in a text editor. Here is a typical ''version.php'':
* For Moodle sites in English or German (only), 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 e.g. 27 or 32 which mean you are using Moodle 2.7 or 3.2 respectively.


<pre>
==Finding the version of Moodle if your site is in a language other than English  or German==
<?php
* For Moodle sites in languages other than English, you can go to any course where you are a teacher. We will see one example for a Mexican Spanish site.
** Notice the URL in the browser window (blue rectangle in the image below).


// MOODLE VERSION INFORMATION
[[File:Finding_your_Moodle_via_English_Docs_step_1_.png]]


// This file defines the current version of the core Moodle code being used.
**  Add '&lang=en' to the address (green rectangle in the image below).  
// 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)
[[File:Finding_your_Moodle_via_English_Docs_step_2_.png]]
                              //        X    = release number 1.9.[0,1,2,3,4,5...]
* Your course will now have a 'Moodle Docs for this page' link (blue rectangle in the image above) that will lead you to the version of the English Moodle documentation that corresponds to your Moodle site version (green rectangle in the image below):
                              //          Y.YY = micro-increments between releases


    $release = '1.9.8+ (Build: 20100512)';    // Human-friendly version name
[[File:Finding your Moodle via English Docs step 3 .png]]


?>
{{Note|This technique will not work if the Moodle admin has configured 'Force language' in a course.}}
</pre>
 
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==
==See also==


* MDL-26852 No way provided for users to determine Moodle build information
* [https://moodledev.io/general/releases developer documentation about versions]


[[Category:FAQ]]
[[Category:FAQ]]
[[es:Versión de Moodle]]

Latest revision as of 18:06, 18 May 2024

What version of Moodle am I using?

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

Moodle version info

Finding the version of Moodle if you are not an admin

  • For Moodle sites in English or German (only), 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 e.g. 27 or 32 which mean you are using Moodle 2.7 or 3.2 respectively.

Finding the version of Moodle if your site is in a language other than English or German

  • For Moodle sites in languages other than English, you can go to any course where you are a teacher. We will see one example for a Mexican Spanish site.
    • Notice the URL in the browser window (blue rectangle in the image below).

Finding your Moodle via English Docs step 1 .png

    • Add '&lang=en' to the address (green rectangle in the image below).

Finding your Moodle via English Docs step 2 .png

  • Your course will now have a 'Moodle Docs for this page' link (blue rectangle in the image above) that will lead you to the version of the English Moodle documentation that corresponds to your Moodle site version (green rectangle in the image below):

Finding your Moodle via English Docs step 3 .png

Note: This technique will not work if the Moodle admin has configured 'Force language' in a course.


See also