1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Fixes #4443 - set default stylesheet scope to 'front' when attribute has been omitted from theme.xml.

This commit is contained in:
Cameron 2021-03-11 09:27:38 -08:00
parent 9c9dcb5e52
commit fb3888abc3
3 changed files with 11 additions and 3 deletions

View File

@ -1117,7 +1117,7 @@ class e_theme
"name" => $val['@attributes']['file'],
"info" => $val['@attributes']['name'],
"nonadmin" => $notadmin,
'scope' => vartrue($val['@attributes']['scope']),
'scope' => vartrue($val['@attributes']['scope'], 'front'),
'exclude' => vartrue($val['@attributes']['exclude']),
'description' => vartrue($val['@attributes']['description']),
'thumbnail' => vartrue($val['@attributes']['thumbnail'])

View File

@ -66,7 +66,7 @@ abstract class E107Base extends Base
$this->restoreLocalE107Config();
$this->workaroundOldPhpUnitPhpCodeCoverage();
}
/*
public function _failed($test, $fail)
{
parent::_failed($test, $fail);
@ -75,7 +75,7 @@ abstract class E107Base extends Base
$this->restoreLocalE107Config();
$this->workaroundOldPhpUnitPhpCodeCoverage();
}
}*/
protected function revokeLocalE107Config()

View File

@ -142,6 +142,14 @@
'description' => '',
'thumbnail' => '',
),
'*' => array (
'name' => '*',
'info' => '*',
'nonadmin' => true,
'exclude' => '',
'description' => '',
'thumbnail' => '',
),
),
),
5 => array(