You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a fresh install of Moodle 4.4.3, diary master branch, tag v.3.8.0, throws "Undefined property: stdClass::$branch" on line 166 of mod/diary/lib.php, effectively halting the install.
/**
* Indicates API features that the diary supports.
*
* @uses FEATURE_MOD_PURPOSE:
* @uses FEATURE__BACKUP_MOODLE2
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
* @uses FEATURE_GRADE_OUTCOMES
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_RATE
* @uses FEATURE_SHOW_DESCRIPTION
* @param string $feature FEATURE_xx constant for requested feature.
* @return mixed True if module supports feature, null if doesn't know.
*/
function diary_supports($feature) {
global $CFG;
**if ((int)$CFG->branch > 311) {**
if ($feature === FEATURE_MOD_PURPOSE) {
return MOD_PURPOSE_COLLABORATION;
}
}
switch ($feature) {
case FEATURE_BACKUP_MOODLE2:
return true;
case FEATURE_COMPLETION_TRACKS_VIEWS:
return true;
case FEATURE_GRADE_HAS_GRADE:
The text was updated successfully, but these errors were encountered:
Adding screenshots for more context. The issue occurs during a fresh install of Moodle on the /user/editadvanced.php page. When installing Moodle 4.3.8 it's a warning. When installing 4.4.3, it's a error.
During a fresh install of Moodle 4.4.3, diary master branch, tag v.3.8.0, throws "Undefined property: stdClass::$branch" on line 166 of mod/diary/lib.php, effectively halting the install.
The text was updated successfully, but these errors were encountered: