Release of 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.
This commit is contained in:
@@ -90,7 +90,8 @@ class ImportModel extends BaseDatabaseModel
|
||||
$package = null;
|
||||
$continue = false;
|
||||
// get import type
|
||||
$this->getType = $app->input->getString('gettype', NULL);
|
||||
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
|
||||
$this->getType = $input->getString('gettype', NULL);
|
||||
// get import type
|
||||
$this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL);
|
||||
|
||||
@@ -196,7 +197,7 @@ class ImportModel extends BaseDatabaseModel
|
||||
{
|
||||
// Get the uploaded file information
|
||||
$app = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication();
|
||||
$input = $app->input;
|
||||
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
|
||||
|
||||
// Do not change the filter type 'raw'. We need this to let files containing PHP code to upload. See JInputFiles::get.
|
||||
$userfile = $input->files->get('import_package', null, 'raw');
|
||||
@@ -256,7 +257,7 @@ class ImportModel extends BaseDatabaseModel
|
||||
protected function _getPackageFromFolder()
|
||||
{
|
||||
$app = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication();
|
||||
$input = $app->input;
|
||||
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
|
||||
|
||||
// Get the path to the package to import
|
||||
$p_dir = $input->getString('import_directory');
|
||||
@@ -301,7 +302,7 @@ class ImportModel extends BaseDatabaseModel
|
||||
protected function _getPackageFromUrl()
|
||||
{
|
||||
$app = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication();
|
||||
$input = $app->input;
|
||||
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
|
||||
|
||||
// Get the URL of the package to import
|
||||
$url = $input->getString('import_url');
|
||||
|
Reference in New Issue
Block a user