MDL-75841 core: Don't fetch favicon setting on install

This commit is contained in:
Jun Pataleta
2022-09-28 12:41:45 +08:00
parent 8f492a836a
commit cd1b2e5eaf
+4 -2
View File
@@ -4269,8 +4269,10 @@ EOD;
* @return moodle_url The moodle_url for the favicon
*/
public function favicon() {
global $CFG;
$logo = get_config('core_admin', 'favicon');
$logo = null;
if (!during_initial_install()) {
$logo = get_config('core_admin', 'favicon');
}
if (empty($logo)) {
return $this->image_url('favicon', 'theme');
}