diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php
index 943d6636c..04a70c72c 100644
--- a/libraries/relation.lib.php
+++ b/libraries/relation.lib.php
@@ -93,96 +93,104 @@ function PMA_getRelationsParam($verbose = false)
* @uses $GLOBALS['strQuerySQLHistory']
* @uses $GLOBALS['strDesigner']
* @uses $cfg['Server']['pmadb']
- * quses sprintf()
+ * @uses sprintf()
+ * @uses PMA_printDiagMessageForFeature()
+ * @uses PMA_printDiagMessageForParameter()
* @param array $cfgRelation
*/
function PMA_printRelationsParamDiagnostic($cfgRelation)
{
+ $messages['error'] = '' . $GLOBALS['strNotOK']
+ . ' [ '
+ . $GLOBALS['strDocu'] . ' ]';
+
+ $messages['ok'] = '' . $GLOBALS['strOK'] . '';
+ $messages['enabled'] = '' . $GLOBALS['strEnabled'] . '';
+ $messages['disabled'] = '' . $GLOBALS['strDisabled'] . '';
+
if (false === $GLOBALS['cfg']['Server']['pmadb']) {
echo 'PMA Database ... '
- . '' . $GLOBALS['strNotOK'] . ''
- . '[ ' . $GLOBALS['strDocu']
- . ' ]
' . "\n"
+ . sprintf($messages['error'], 'pmadb')
+ . '
' . "\n"
. $GLOBALS['strGeneralRelationFeat']
. ' ' . $GLOBALS['strDisabled']
. '' . "\n";
return;
}
- $shit = '' . $GLOBALS['strNotOK']
- . ' [ '
- . $GLOBALS['strDocu'] . ' ]';
- $hit = '' . $GLOBALS['strOK'] . '';
- $enabled = '' . $GLOBALS['strEnabled'] . '';
- $disabled = '' . $GLOBALS['strDisabled'] . '';
-
echo '
$cfg[\'Servers\'][$i][\'pmadb\'] ... | ' - . (($GLOBALS['cfg']['Server']['pmadb'] == false) ? sprintf($shit, 'pmadb') : $hit) - . ' |
---|---|
$cfg[\'Servers\'][$i][\'relation\'] ... | ' - . ((isset($cfgRelation['relation'])) ? $hit : sprintf($shit, 'relation')) - . ' |
'. $GLOBALS['strGeneralRelationFeat'] . ': ' - . ($cfgRelation['relwork'] ? $enabled : $disabled) - . ' | |
$cfg[\'Servers\'][$i][\'table_info\'] ... | ' - . (($cfgRelation['displaywork'] == false) ? sprintf($shit, 'table_info') : $hit) - . ' |
' . $GLOBALS['strDisplayFeat'] . ': ' - . ($cfgRelation['displaywork'] ? $enabled : $disabled) - . ' | |
$cfg[\'Servers\'][$i][\'table_coords\'] ... | ' - . ((isset($cfgRelation['table_coords'])) ? $hit : sprintf($shit, 'table_coords')) - . ' |
$cfg[\'Servers\'][$i][\'pdf_pages\'] ... | ' - . ((isset($cfgRelation['pdf_pages'])) ? $hit : sprintf($shit, 'table_coords')) - . ' |
' . $GLOBALS['strCreatePdfFeat'] . ': ' - . ($cfgRelation['pdfwork'] ? $enabled : $disabled) - . ' | |
$cfg[\'Servers\'][$i][\'column_info\'] ... | ' - . ((isset($cfgRelation['column_info'])) ? $hit : sprintf($shit, 'col_com')) - . ' |
' . $GLOBALS['strColComFeat'] . ': ' - . ($cfgRelation['commwork'] ? $enabled : $disabled) - . ' | |
' . $GLOBALS['strBookmarkQuery'] . ': ' - . ($cfgRelation['bookmarkwork'] ? $enabled : $disabled) - . ' | |
MIME ... | ' - . ($cfgRelation['mimework'] ? $hit : sprintf($shit, 'col_com')) - . ' |
' . $GLOBALS['strUpdComTab'] . ' | |
$cfg[\'Servers\'][$i][\'history\'] ... | ' - . ((isset($cfgRelation['history'])) ? $hit : sprintf($shit, 'history')) - . ' |
' . $GLOBALS['strQuerySQLHistory'] . ': ' - . ($cfgRelation['historywork'] ? $enabled : $disabled) - . ' | |
$cfg[\'Servers\'][$i][\'designer_coords\'] ... | ' - . ((isset($cfgRelation['designer_coords'])) ? $hit : sprintf($shit, 'designer_coords')) - . ' |
' . $GLOBALS['strDesigner'] . ': ' - . ($cfgRelation['designerwork'] ? $enabled : $disabled) - . ' |