Skip to content

Commit

Permalink
Merge branch '5.0-dev' into 5.0/upmerge-2023-11-17
Browse files Browse the repository at this point in the history
  • Loading branch information
bembelimen authored Nov 18, 2023
2 parents c7cde13 + 5e9aea0 commit d5e30da
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions libraries/src/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,21 @@ public static function getInstance($type, $prefix = 'JTable', $config = [])
include_once $tryThis;
}
}
}

if (!class_exists($tableClass) && class_exists($tableClassLegacy)) {
$tableClass = $tableClassLegacy;
}
if (!class_exists($tableClass) && class_exists($tableClassLegacy)) {
$tableClass = $tableClassLegacy;
}

if (!class_exists($tableClass)) {
/*
* If unable to find the class file in the Table include paths. Return false.
* The warning JLIB_DATABASE_ERROR_NOT_SUPPORTED_FILE_NOT_FOUND has been removed in 3.6.3.
* In 4.0 an Exception (type to be determined) will be thrown.
* For more info see https://github.com/joomla/joomla-cms/issues/11570
*/
if (!class_exists($tableClass)) {
/*
* If unable to find the class file in the Table include paths. Return false.
* The warning JLIB_DATABASE_ERROR_NOT_SUPPORTED_FILE_NOT_FOUND has been removed in 3.6.3.
* In 6.0 an Exception (type to be determined) will be thrown.
* For more info see https://github.com/joomla/joomla-cms/issues/11570
*/

return false;
}
return false;
}

// If a database object was passed in the configuration array use it, otherwise get the global one from Factory.
Expand Down

0 comments on commit d5e30da

Please sign in to comment.