fixed call to PMA_Message::addParam()

This commit is contained in:
Sebastian Mendel
2007-10-18 07:24:04 +00:00
parent 79b0e097d3
commit 26599a4fe2
5 changed files with 16 additions and 12 deletions

View File

@@ -399,8 +399,8 @@ if (!$is_information_schema) {
if ($num_tables > 0
&& !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA_Message::notice('strRelationNotWorking');
$message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">');
$message->addParam('</a>');
$message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', false);
$message->addParam('</a>', false);
/* Show error if user has configured something, notice elsewhere */
if (!empty($cfg['Servers'][$server]['pmadb'])) {
$message->isError(true);

View File

@@ -17,9 +17,9 @@ if ($GLOBALS['cfg']['DBG']['enable']) {
if (! @extension_loaded('dbg') && ! PMA_dl('dbg')) {
$message = PMA_Message::error('strCantLoad');
$message->addParam('DBG');
$message->addMessage('<a href="./Documentation.html#faqdbg" target="documentation">');
$message->addMessage('<a href="./Documentation.html#faqdbg" target="documentation">', false);
$message->addString('strDocu');
$message->addMessage('</a>');
$message->addMessage('</a>', false);
$message->display();
} else {
$GLOBALS['DBG'] = true;

View File

@@ -143,18 +143,22 @@ echo PMA_pluginGetJavascript($export_list);
<?php
echo $strFileNameTemplate;
$trans = '__SERVER__/' . $strFileNameTemplateDescriptionServer;
$trans = new PMA_Message;
$trans->addMessage('__SERVER__/');
$trans->addString('strFileNameTemplateDescriptionServer');
if ($export_type == 'database' || $export_type == 'table') {
$trans .= ', __DB__/' . $strFileNameTemplateDescriptionDatabase;
$trans->addMessage('__DB__/');
$trans->addString('strFileNameTemplateDescriptionDatabase');
if ($export_type == 'table') {
$trans .= ', __TABLE__/' . $strFileNameTemplateDescriptionTable;
$trans->addMessage('__TABLE__/');
$trans->addString('strFileNameTemplateDescriptionTable');
}
}
$message = new PMA_Message('strFileNameTemplateDescription');
$message->addParam('<a href="http://php.net/strftime" target="documentation" title="'
. $strDocu . '">');
$message->addParam('</a>');
. $strDocu . '">', false);
$message->addParam('</a>', false);
$message->addParam($trans);
echo PMA_showHint($message);

View File

@@ -1530,8 +1530,8 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
} // end if (display overview)
echo '</form>' . "\n";
$flushnote = new PMA_Message('strFlushPrivilegesNote', PMA_Message::NOTICE);
$flushnote->addParam('<a href="server_privileges.php?' . $GLOBALS['url_query'] . '&amp;flush_privileges=1">');
$flushnote->addParam('</a>');
$flushnote->addParam('<a href="server_privileges.php?' . $GLOBALS['url_query'] . '&amp;flush_privileges=1">', false);
$flushnote->addParam('</a>', false);
$flushnote->display();
}

View File

@@ -75,7 +75,7 @@ if (isset($do_save_data)) {
if ($error_create == FALSE) {
$message = PMA_Message::success('strTableAlteredSuccessfully');
$message->addParam(htmlspecialchars($table));
$message->addParam($table);
$btnDrop = 'Fake';
// garvin: If comments were sent, enable relation stuff