Bug #24135 » 16480.diff
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
$res = t3lib_BEfunc::exec_foreign_table_where_query($fieldValue,$field,$TSconfig,$pF);
|
||
// Perform lookup
|
||
if ($GLOBALS['TYPO3_DB']->sql_error()) {
|
||
echo($GLOBALS['TYPO3_DB']->sql_error()."\n\nThis may indicate a table defined in tables.php is not existing in the database!");
|
||
if ($GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$flashMessage = t3lib_div::makeInstance(
|
||
't3lib_FlashMessage',
|
||
sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_tceforms.xml:error.sql_foreignTableMissing'), $GLOBALS['TYPO3_DB']->sql_error()),
|
||
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_tceforms.xml:error.sql_foreignTableMissing_header'),
|
||
t3lib_FlashMessage::ERROR
|
||
);
|
||
t3lib_FlashMessageQueue::addMessage($flashMessage);
|
||
return array();
|
||
}
|
||
typo3/sysext/lang/locallang_tceforms.xml (Revision 0) | ||
---|---|---|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||
<T3locallang>
|
||
<meta type="array">
|
||
<description>Labels for TCEforms</description>
|
||
<type>database</type>
|
||
</meta>
|
||
<data type="array">
|
||
<languageKey index="default" type="array">
|
||
<label index="error.sql_foreignTableMissing_header">Database error!</label>
|
||
<label index="error.sql_foreignTableMissing">The following error occured: "%s".<br />This may indicate that a table defined in tables.php is not existing in the database!'</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|