Skip to content

Commit 25e0081

Browse files
Update Framework.php
1 parent d94a618 commit 25e0081

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

astroid/astroid-framework/framework/library/astroid/Framework.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static function init()
3333
self::$document = new Document(); // Document
3434

3535
self::constants();
36+
self::audit();
3637
}
3738

3839
public static function getVersion()
@@ -126,6 +127,15 @@ public static function check()
126127
}
127128
}
128129

130+
public static function audit()
131+
{
132+
$template = Framework::getTemplate();
133+
if (ASTROID_JOOMLA_VERSION == 4 && $template->isAstroid && file_exists(JPATH_SITE . "/templates/{$template->template}/html-j4")) {
134+
rename(JPATH_SITE . "/templates/{$template->template}/html", JPATH_SITE . "/templates/{$template->template}/html-j3");
135+
rename(JPATH_SITE . "/templates/{$template->template}/html-j4", JPATH_SITE . "/templates/{$template->template}/html");
136+
}
137+
}
138+
129139
public static function getClientType()
130140
{
131141
$app = \JFactory::getApplication();

0 commit comments

Comments
 (0)