Details
Description
at present you have to do:
'base' => array(
'theme' => 'newtheme',
'file' => 'general.php',
'regions' => array(),
),
we actually know in which theme we are, so we may add the 'theme' on the fly using current theme name when loading the theme config
Benefit: it will be easier to duplicate/modify themes
Hi Petr,
I have attached a patch that removes the need to set 'theme' for each layout.
With this patch if theme hasn't been set then Moodle checks the current theme then its parents for first layout file it finds named as the layout has requested.
Let me know what you think.
Cheers
Sam