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:
@@ -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'])
|
||||||
|
@@ -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()
|
||||||
|
@@ -142,6 +142,14 @@
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
'thumbnail' => '',
|
'thumbnail' => '',
|
||||||
),
|
),
|
||||||
|
'*' => array (
|
||||||
|
'name' => '*',
|
||||||
|
'info' => '*',
|
||||||
|
'nonadmin' => true,
|
||||||
|
'exclude' => '',
|
||||||
|
'description' => '',
|
||||||
|
'thumbnail' => '',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
5 => array(
|
5 => array(
|
||||||
|
Reference in New Issue
Block a user