mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-78055 themes: account for undefined extrascsscallback config.
Where a theme didn't define this property, it would raise debugging deprecation warnings in PHP8.1.
This commit is contained in:
parent
71c36d2de1
commit
ef659d0584
1 changed files with 8 additions and 2 deletions
|
@ -1599,7 +1599,10 @@ class theme_config {
|
|||
}
|
||||
$candidates[] = $parent_config->extrascsscallback;
|
||||
}
|
||||
$candidates[] = $this->extrascsscallback;
|
||||
|
||||
if (isset($this->extrascsscallback)) {
|
||||
$candidates[] = $this->extrascsscallback;
|
||||
}
|
||||
|
||||
// Calling the functions.
|
||||
foreach ($candidates as $function) {
|
||||
|
@ -1629,7 +1632,10 @@ class theme_config {
|
|||
}
|
||||
$candidates[] = $parent_config->prescsscallback;
|
||||
}
|
||||
$candidates[] = $this->prescsscallback;
|
||||
|
||||
if (isset($this->prescsscallback)) {
|
||||
$candidates[] = $this->prescsscallback;
|
||||
}
|
||||
|
||||
// Calling the functions.
|
||||
foreach ($candidates as $function) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue