1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02: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'], "name" => $val['@attributes']['file'],
"info" => $val['@attributes']['name'], "info" => $val['@attributes']['name'],
"nonadmin" => $notadmin, "nonadmin" => $notadmin,
'scope' => vartrue($val['@attributes']['scope']), 'scope' => vartrue($val['@attributes']['scope'], 'front'),
'exclude' => vartrue($val['@attributes']['exclude']), 'exclude' => vartrue($val['@attributes']['exclude']),
'description' => vartrue($val['@attributes']['description']), 'description' => vartrue($val['@attributes']['description']),
'thumbnail' => vartrue($val['@attributes']['thumbnail']) 'thumbnail' => vartrue($val['@attributes']['thumbnail'])

View File

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

View File

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