mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
MDL-41663 Output: Allow subtype as a namespace level on it's own
This commit is contained in:
parent
79046c2726
commit
1a1d3665dc
3 changed files with 58 additions and 6 deletions
6
lib/tests/fixtures/test_renderer_factory.php
vendored
6
lib/tests/fixtures/test_renderer_factory.php
vendored
|
@ -66,10 +66,16 @@ class test_output_factory extends renderer_factory_base {
|
|||
$searchtargets = array();
|
||||
|
||||
list($target, $suffix) = $this->get_target_suffix($target);
|
||||
// Add all suffix versions first - to match the real search order.
|
||||
foreach ($classnames as $classnamedetails) {
|
||||
if ($classnamedetails['validwithoutprefix']) {
|
||||
$newclassname = $classnamedetails['classname'] . $suffix;
|
||||
$searchtargets[] = $newclassname;
|
||||
}
|
||||
}
|
||||
// Add all non-suffixed versions now.
|
||||
foreach ($classnames as $classnamedetails) {
|
||||
if ($classnamedetails['validwithoutprefix']) {
|
||||
$newclassname = $classnamedetails['classname'];
|
||||
$searchtargets[] = $newclassname;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue