From cd1b2e5eafda5258fe804abb34bbe1e4c0fca95e Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 28 Sep 2022 12:41:45 +0800 Subject: [PATCH] MDL-75841 core: Don't fetch favicon setting on install --- lib/outputrenderers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index a2603fd3874..0b39a4e0af0 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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'); }