File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
astroid/astroid-framework/framework/library/astroid Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments