1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 19:00:26 +02:00

Menu manager: Legacy themes: Added some magic constant support

This commit is contained in:
Nick Liu
2020-12-26 21:08:57 +01:00
parent 30ac723fa2
commit d7de9d5a28

View File

@@ -2087,6 +2087,9 @@ class e_menu_layout
$themeFileContent = str_replace("class ".$theme."_theme", "class ".$theme."__theme", $themeFileContent); // rename class to avoid conflicts while parsing.
$themeFileContent = str_replace('__DIR__', var_export(dirname($file), true), $themeFileContent);
$themeFileContent = str_replace('__FILE__', var_export($file, true), $themeFileContent);
try
{
@eval($themeFileContent);