Permalink
Browse files

Reverting pull request #93 due to BC issues and mismatch between inte…

…nded behaviour and actual.

This pull request is being reverted due to two issues:
1) The pull request causes a backwards compatibility issue where a spurious warning would always be generated ("Table class not found in file")
2) The pull request states that the extension name should be used, instead the change actually uses the name of the model.

More details available on this platform mailing list post:

http://groups.google.com/group/joomla-dev-platform/msg/2f62f1352f1f09d7
  • Loading branch information...
1 parent 28430d3 commit b59de99cc90669f6b6f1ee93d7ba6efd7433900e @pasamio pasamio committed Jan 1, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 libraries/joomla/application/component/model.php
View
12 libraries/joomla/application/component/model.php
@@ -435,28 +435,18 @@ public function getState($property = null, $default = null)
*
* @since 11.1
*/
- public function getTable($name = '', $prefix = '', $options = array())
+ public function getTable($name = '', $prefix = 'Table', $options = array())
{
if (empty($name))
{
$name = $this->getName();
}
- if (empty($prefix))
- {
- $prefix = $this->getName() . 'Table';
- }
-
if ($table = $this->_createTable($name, $prefix, $options))
{
return $table;
}
- if ($table = $this->_createTable($name, 'Table', $options))
- {
- return $table;
- }
-
JError::raiseError(0, JText::sprintf('JLIB_APPLICATION_ERROR_TABLE_NAME_NOT_SUPPORTED', $name));
return null;

0 comments on commit b59de99

Please sign in to comment.