diff --git a/CHANGELOG.md b/CHANGELOG.md index 0928d22bd..731804487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,19 @@ -# v5.1.2-alpha2 +# v5.1.2-alpha3 +- Migrates view HTML classes to use getModel() directly instead of the deprecated magic get() calls to model methods. +- Refactores event handling (contentPrepare, titlePrepare, contentBeforeDisplay, contentAfterDisplay) to use Joomla 5’s native event dispatcher via the model’s new getDispatcher() method. +- Updates table classes to properly support NULL values, both in the store() method and in table variable definitions. #1245 +- Extractes the setAutoCheckIn() and setCheckInCall() logic into a dedicated CheckInNow class for cleaner design. +- Replace all direct $app->input property calls with the recommended $app->getInput() method across the entire codebase. + +# v5.1.2-alpha + +- Fix the template and layout linker for packages. - Add native module builder for Joomla 4/5 - Refactor dynamic get methods into dedicated classes - Move Joomla DB handling into compiler injector flow - Fix auto-check(in) method for Joomla 4/5 compatibility -# v5.1.2-alpha - -- Fix the template and layout linker for packages. - # v5.1.1 - Move all banners to GitHub. diff --git a/ComponentbuilderInstallerScript.php b/ComponentbuilderInstallerScript.php index 5b9ed6743..9b637fcd9 100644 --- a/ComponentbuilderInstallerScript.php +++ b/ComponentbuilderInstallerScript.php @@ -3292,7 +3292,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface echo '
' . Text::_('COM_COMPONENTBUILDER_PLEASE_SELECT_A_COMPONENT_THAT_YOU_WOULD_LIKE_TO_COMPILE') . '
'; // set the noticeboard options -$noticeboardOptions = array('vdm', 'pro'); +$noticeboardOptions = ['vdm', 'pro']; ?> canDo->get('compiler.access')): ?> diff --git a/admin/tmpl/components_admin_views/modal.php b/admin/tmpl/components_admin_views/modal.php index 5ce6102dc..8f11c7d57 100644 --- a/admin/tmpl/components_admin_views/modal.php +++ b/admin/tmpl/components_admin_views/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_config/modal.php b/admin/tmpl/components_config/modal.php index 66c6f073a..0b97139de 100644 --- a/admin/tmpl/components_config/modal.php +++ b/admin/tmpl/components_config/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_custom_admin_menus/modal.php b/admin/tmpl/components_custom_admin_menus/modal.php index e8c4058de..f3b93af34 100644 --- a/admin/tmpl/components_custom_admin_menus/modal.php +++ b/admin/tmpl/components_custom_admin_menus/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_custom_admin_views/modal.php b/admin/tmpl/components_custom_admin_views/modal.php index e67464ff0..2311daa30 100644 --- a/admin/tmpl/components_custom_admin_views/modal.php +++ b/admin/tmpl/components_custom_admin_views/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_dashboard/modal.php b/admin/tmpl/components_dashboard/modal.php index 8b4adf84b..48755681d 100644 --- a/admin/tmpl/components_dashboard/modal.php +++ b/admin/tmpl/components_dashboard/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_files_folders/modal.php b/admin/tmpl/components_files_folders/modal.php index b3a03f517..79a73a3be 100644 --- a/admin/tmpl/components_files_folders/modal.php +++ b/admin/tmpl/components_files_folders/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_modules/modal.php b/admin/tmpl/components_modules/modal.php index ff25ff308..5d02a2a95 100644 --- a/admin/tmpl/components_modules/modal.php +++ b/admin/tmpl/components_modules/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_mysql_tweaks/modal.php b/admin/tmpl/components_mysql_tweaks/modal.php index 1da8f836d..82b871e6a 100644 --- a/admin/tmpl/components_mysql_tweaks/modal.php +++ b/admin/tmpl/components_mysql_tweaks/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_placeholders/modal.php b/admin/tmpl/components_placeholders/modal.php index efc173938..c0f84d809 100644 --- a/admin/tmpl/components_placeholders/modal.php +++ b/admin/tmpl/components_placeholders/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_plugins/modal.php b/admin/tmpl/components_plugins/modal.php index 316ecbe79..674dcaacd 100644 --- a/admin/tmpl/components_plugins/modal.php +++ b/admin/tmpl/components_plugins/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_routers/modal.php b/admin/tmpl/components_routers/modal.php index 968e7097f..69bc30226 100644 --- a/admin/tmpl/components_routers/modal.php +++ b/admin/tmpl/components_routers/modal.php @@ -25,12 +25,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_site_views/modal.php b/admin/tmpl/components_site_views/modal.php index d59be40a4..ae2729591 100644 --- a/admin/tmpl/components_site_views/modal.php +++ b/admin/tmpl/components_site_views/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/components_updates/modal.php b/admin/tmpl/components_updates/modal.php index 67f3e0fed..a5904f419 100644 --- a/admin/tmpl/components_updates/modal.php +++ b/admin/tmpl/components_updates/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/custom_admin_views/modal.php b/admin/tmpl/custom_admin_views/modal.php index a073d7571..b1b18a31f 100644 --- a/admin/tmpl/custom_admin_views/modal.php +++ b/admin/tmpl/custom_admin_views/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/custom_codes/modal.php b/admin/tmpl/custom_codes/modal.php index e338b51f5..066a7f4ee 100644 --- a/admin/tmpl/custom_codes/modal.php +++ b/admin/tmpl/custom_codes/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/dynamic_gets/modal.php b/admin/tmpl/dynamic_gets/modal.php index 6322760ce..1eea89de4 100644 --- a/admin/tmpl/dynamic_gets/modal.php +++ b/admin/tmpl/dynamic_gets/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/fields/modal.php b/admin/tmpl/fields/modal.php index 9d1139c1c..d1112bb3b 100644 --- a/admin/tmpl/fields/modal.php +++ b/admin/tmpl/fields/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/fieldtypes/modal.php b/admin/tmpl/fieldtypes/modal.php index fc87223e8..439fcee1d 100644 --- a/admin/tmpl/fieldtypes/modal.php +++ b/admin/tmpl/fieldtypes/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/help_documents/modal.php b/admin/tmpl/help_documents/modal.php index 0b68f885e..c86e699c3 100644 --- a/admin/tmpl/help_documents/modal.php +++ b/admin/tmpl/help_documents/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_components/modal.php b/admin/tmpl/joomla_components/modal.php index 24df86aee..c4a8d827c 100644 --- a/admin/tmpl/joomla_components/modal.php +++ b/admin/tmpl/joomla_components/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_modules/modal.php b/admin/tmpl/joomla_modules/modal.php index ba398a7aa..1a3268597 100644 --- a/admin/tmpl/joomla_modules/modal.php +++ b/admin/tmpl/joomla_modules/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_modules_files_folders_urls/modal.php b/admin/tmpl/joomla_modules_files_folders_urls/modal.php index 52a34b570..b4ac2fd87 100644 --- a/admin/tmpl/joomla_modules_files_folders_urls/modal.php +++ b/admin/tmpl/joomla_modules_files_folders_urls/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_modules_updates/modal.php b/admin/tmpl/joomla_modules_updates/modal.php index 26b03c425..1624e5946 100644 --- a/admin/tmpl/joomla_modules_updates/modal.php +++ b/admin/tmpl/joomla_modules_updates/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_plugin_groups/modal.php b/admin/tmpl/joomla_plugin_groups/modal.php index 26ba7ec68..c64dedf02 100644 --- a/admin/tmpl/joomla_plugin_groups/modal.php +++ b/admin/tmpl/joomla_plugin_groups/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_plugins/modal.php b/admin/tmpl/joomla_plugins/modal.php index 3e3c46020..750c7c052 100644 --- a/admin/tmpl/joomla_plugins/modal.php +++ b/admin/tmpl/joomla_plugins/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_plugins_files_folders_urls/modal.php b/admin/tmpl/joomla_plugins_files_folders_urls/modal.php index 38306dc92..4b5712dbe 100644 --- a/admin/tmpl/joomla_plugins_files_folders_urls/modal.php +++ b/admin/tmpl/joomla_plugins_files_folders_urls/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_plugins_updates/modal.php b/admin/tmpl/joomla_plugins_updates/modal.php index 9fec81ce0..3e28e2d9c 100644 --- a/admin/tmpl/joomla_plugins_updates/modal.php +++ b/admin/tmpl/joomla_plugins_updates/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/joomla_powers/modal.php b/admin/tmpl/joomla_powers/modal.php index 5550a4a51..69a4854c3 100644 --- a/admin/tmpl/joomla_powers/modal.php +++ b/admin/tmpl/joomla_powers/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/language_translations/modal.php b/admin/tmpl/language_translations/modal.php index 3eefe0032..21d977527 100644 --- a/admin/tmpl/language_translations/modal.php +++ b/admin/tmpl/language_translations/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/languages/modal.php b/admin/tmpl/languages/modal.php index 1013e039a..d3864eb56 100644 --- a/admin/tmpl/languages/modal.php +++ b/admin/tmpl/languages/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/layouts/modal.php b/admin/tmpl/layouts/modal.php index a1e6f1d87..3eb5f827b 100644 --- a/admin/tmpl/layouts/modal.php +++ b/admin/tmpl/layouts/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/libraries/modal.php b/admin/tmpl/libraries/modal.php index 163711404..1caab0113 100644 --- a/admin/tmpl/libraries/modal.php +++ b/admin/tmpl/libraries/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/libraries_config/modal.php b/admin/tmpl/libraries_config/modal.php index 1ad8c8e77..1d47fb8b5 100644 --- a/admin/tmpl/libraries_config/modal.php +++ b/admin/tmpl/libraries_config/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/libraries_files_folders_urls/modal.php b/admin/tmpl/libraries_files_folders_urls/modal.php index 9492f0f3a..5b47142ad 100644 --- a/admin/tmpl/libraries_files_folders_urls/modal.php +++ b/admin/tmpl/libraries_files_folders_urls/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/placeholders/modal.php b/admin/tmpl/placeholders/modal.php index ed06fdee8..7d93d68ea 100644 --- a/admin/tmpl/placeholders/modal.php +++ b/admin/tmpl/placeholders/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/powers/modal.php b/admin/tmpl/powers/modal.php index f22000093..0e56191cd 100644 --- a/admin/tmpl/powers/modal.php +++ b/admin/tmpl/powers/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/repositories/modal.php b/admin/tmpl/repositories/modal.php index d66ab1f4b..153f7ac59 100644 --- a/admin/tmpl/repositories/modal.php +++ b/admin/tmpl/repositories/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/search/default.php b/admin/tmpl/search/default.php index 0367f0912..24ad25a16 100644 --- a/admin/tmpl/search/default.php +++ b/admin/tmpl/search/default.php @@ -28,7 +28,7 @@ use Joomla\CMS\Session\Session; defined('_JEXEC') or die; // allow main menu selection -$this->app->input->set('hidemainmenu', false); +$this->app->getInput()->set('hidemainmenu', false); // set the basu URL $url_base = Uri::base() . 'index.php?option=com_componentbuilder'; diff --git a/admin/tmpl/servers/modal.php b/admin/tmpl/servers/modal.php index 493b7e4c8..227b8ee9c 100644 --- a/admin/tmpl/servers/modal.php +++ b/admin/tmpl/servers/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/site_views/modal.php b/admin/tmpl/site_views/modal.php index e6a218b92..10d435f23 100644 --- a/admin/tmpl/site_views/modal.php +++ b/admin/tmpl/site_views/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/snippet_types/modal.php b/admin/tmpl/snippet_types/modal.php index 4f98fef68..584bd3a10 100644 --- a/admin/tmpl/snippet_types/modal.php +++ b/admin/tmpl/snippet_types/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/snippets/modal.php b/admin/tmpl/snippets/modal.php index b20e0ca78..b43b07efc 100644 --- a/admin/tmpl/snippets/modal.php +++ b/admin/tmpl/snippets/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/templates/modal.php b/admin/tmpl/templates/modal.php index d4edab45a..dafb308c7 100644 --- a/admin/tmpl/templates/modal.php +++ b/admin/tmpl/templates/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/admin/tmpl/validation_rules/modal.php b/admin/tmpl/validation_rules/modal.php index ebbb69088..186c6754e 100644 --- a/admin/tmpl/validation_rules/modal.php +++ b/admin/tmpl/validation_rules/modal.php @@ -24,12 +24,14 @@ defined('_JEXEC') or die; $app = Factory::getApplication(); -if ($app->isClient('site')) { +if ($app->isClient('site')) +{ Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } // dynamic selection of title key (link in modal) -$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word'); +$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input; +$this->modalTitleKey = $input->get('titleKey', 'id', 'word'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); diff --git a/componentbuilder.xml b/componentbuilder.xml index 3aca5b08a..4847fd958 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -1,15 +1,15 @@The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml
index 8da796040..0ffea8c44 100644
--- a/componentbuilder_update_server.xml
+++ b/componentbuilder_update_server.xml
@@ -152,7 +152,7 @@