Project

General

Profile

Bug #22217 » t3lib_fullsearch-flash-msg.patch

Administrator Admin, 2010-03-01 21:56

View differences:

t3lib/class.t3lib_fullsearch.php (working copy)
$writeArray=$this->loadStoreQueryConfigs($dbSC,'0',$writeArray);
$saveStoreArray=1;
$acTitle=htmlspecialchars($actionRecord['title']);
$msg="Query from action '".$acTitle."' loaded!";
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
'Query from action "' . $acTitle . '" loaded!'
);
$msg = $flashMessage->render();
}
}
} elseif ($storeControl['SAVE']) {
if ($storeIndex<0) {
$qOK = $this->saveQueryInAction(abs($storeIndex));
if ($qOK) {
$msg='Query OK and saved.';
if ($qOK) {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
'Query OK and saved.'
);
} else {
$msg='No query saved!';
$msg='';
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
'No query saved!',
'',
t3lib_FlashMessage::ERROR
);
}
$msg = $flashMessage->render();
} else {
if (trim($storeControl['title'])) {
if ($storeIndex>0) {
......
if (!$GLOBALS['BE_USER']->userTS['mod.']['dbint.']['disableStoreControl']) {
$output.= $GLOBALS['SOBE']->doc->section('Load/Save Query',$this->makeStoreControl(),0,1);
if ($msg) {
$output.= $GLOBALS['SOBE']->doc->section('','<font color=red><strong>'.$msg.'</strong></font>');
if ($msg) {
$output .= '<br />' . $msg;
}
$output.= $GLOBALS['SOBE']->doc->spacer(20);
}
(1-1/3)