X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FSafe_DataObject.php;h=b4c251c475f609047c737d401863fd930416e697;hb=9c99082a46bb12fc592cb6c0582c509c1e9a0b1f;hp=16d7165d61b4daaa18d73e8fcfbcbdf02da8acb5;hpb=312c6b68654a6bc5239526c61f23636833e5b502;p=quix0rs-gnu-social.git diff --git a/classes/Safe_DataObject.php b/classes/Safe_DataObject.php index 16d7165d61..b4c251c475 100644 --- a/classes/Safe_DataObject.php +++ b/classes/Safe_DataObject.php @@ -116,7 +116,7 @@ class Safe_DataObject extends DB_DataObject if ($this->_call($method, $params, $return)) { return $return; } else { - // FIXME: i18n? + // Low level exception. No need for i18n as discussed with Brion. throw new Exception('Call to undefined method ' . get_class($this) . '::' . $method); } @@ -242,7 +242,7 @@ class Safe_DataObject extends DB_DataObject $this->debug("Cant find database schema: {$this->_database}/{$this->__table} \n". "in links file data: " . print_r($_DB_DATAOBJECT['INI'],true),"databaseStructure",5); // we have to die here!! - it causes chaos if we don't (including looping forever!) - // FIXME: i18n? + // Low level exception. No need for i18n as discussed with Brion. $this->raiseError( "Unable to load schema for database and table (turn debugging up to 5 for full error message)", DB_DATAOBJECT_ERROR_INVALIDARGS, PEAR_ERROR_DIE); return false; } @@ -259,7 +259,7 @@ class Safe_DataObject extends DB_DataObject * @param array of .ini file names $schemas * @return array */ - protected function parseIniFiles($schemas) + protected function parseIniFiles(array $schemas) { $key = implode("|", $schemas); if (!isset(Safe_DataObject::$iniCache[$key])) { @@ -287,4 +287,3 @@ class Safe_DataObject extends DB_DataObject return Safe_DataObject::$iniCache[$key]; } } -