diff --git a/admin/controllers/admin_views.php b/admin/controllers/admin_views.php index 08723fbca..eaf9bb448 100644 --- a/admin/controllers/admin_views.php +++ b/admin/controllers/admin_views.php @@ -127,7 +127,7 @@ class ComponentbuilderControllerAdmin_views extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/compiler.php b/admin/controllers/compiler.php index 0feb51f5b..78397effe 100644 --- a/admin/controllers/compiler.php +++ b/admin/controllers/compiler.php @@ -534,7 +534,7 @@ class ComponentbuilderControllerCompiler extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/custom_codes.php b/admin/controllers/custom_codes.php index ddaf9a8c2..bb9b3342d 100644 --- a/admin/controllers/custom_codes.php +++ b/admin/controllers/custom_codes.php @@ -127,7 +127,7 @@ class ComponentbuilderControllerCustom_codes extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/dynamic_gets.php b/admin/controllers/dynamic_gets.php index 9627cae1a..0e2c670d7 100644 --- a/admin/controllers/dynamic_gets.php +++ b/admin/controllers/dynamic_gets.php @@ -127,7 +127,7 @@ class ComponentbuilderControllerDynamic_gets extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/fields.php b/admin/controllers/fields.php index 3b0fb5834..adf182fc1 100644 --- a/admin/controllers/fields.php +++ b/admin/controllers/fields.php @@ -127,7 +127,7 @@ class ComponentbuilderControllerFields extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=fields', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=fields', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/joomla_components.php b/admin/controllers/joomla_components.php index e7a8dc482..931c2b6b4 100644 --- a/admin/controllers/joomla_components.php +++ b/admin/controllers/joomla_components.php @@ -128,7 +128,7 @@ class ComponentbuilderControllerJoomla_components extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/joomla_plugins.php b/admin/controllers/joomla_plugins.php index 335952211..c0898b160 100644 --- a/admin/controllers/joomla_plugins.php +++ b/admin/controllers/joomla_plugins.php @@ -62,7 +62,7 @@ class ComponentbuilderControllerJoomla_plugins extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion @@ -102,7 +102,7 @@ class ComponentbuilderControllerJoomla_plugins extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_GET_BOILERPLATE_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/powers.php b/admin/controllers/powers.php index bcdb9abce..3253462eb 100644 --- a/admin/controllers/powers.php +++ b/admin/controllers/powers.php @@ -63,7 +63,7 @@ class ComponentbuilderControllerPowers extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=powers', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=powers', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/controllers/validation_rules.php b/admin/controllers/validation_rules.php index f44bd870c..86943676c 100644 --- a/admin/controllers/validation_rules.php +++ b/admin/controllers/validation_rules.php @@ -127,7 +127,7 @@ class ComponentbuilderControllerValidation_rules extends AdminController // check if user has the right $user = Factory::getUser(); // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=validation_rules', false); + $redirect_url = \JRoute::_('index.php?option=com_componentbuilder&view=validation_rules', false); // set massage $message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); // check if this user has the right to run expansion diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index 584307c22..5b38dff39 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -2161,7 +2161,7 @@ abstract class ComponentbuilderHelper } } // return found content - return str_replace('[[[ROOT-URL]]]', JURI::root(), $target['html']); + return str_replace('[[[ROOT-URL]]]', Uri::root(), $target['html']); } } return $default; @@ -3311,7 +3311,7 @@ abstract class ComponentbuilderHelper $script['view'][] = PHP_EOL . ""; $script['view'][] = ""; $script['view'][] = PHP_EOL . "