[FIX] API Key sample format

Fixes #1694
This commit is contained in:
Sebastian Grewe 2014-02-06 11:20:57 +01:00
parent 7cf3fb27fb
commit c8fbc369cf
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ if ($price = $tools->getPrice()) {
// Update Uptime Robot status in Settings table via API call
if ($api_keys = $setting->getValue('monitoring_uptimerobot_api_keys')) {
if (!strstr($api_keys, '<API KEY>|<MONITOR ID>')) {
if (!strstr($api_keys, 'MONITOR_API_KEY|MONITOR_NAME')) {
$monitoring->setTools($tools);
if (!$monitoring->storeUptimeRobotStatus()) {
$log->logError($monitoring->getCronError());

View File

@ -386,7 +386,7 @@ $aSettings['recaptcha'][] = array(
$aSettings['monitoring'][] = array(
'display' => 'Uptime Robot Private API Key', 'type' => 'text',
'size' => 100,
'default' => '<API KEY>|<MONITOR ID>,<API KEY>|<MONITOR ID>, ...',
'default' => 'MONITOR_API_KEY|MONITOR_NAME,MONITOR_API_KEY|MONITOR_NAME,...',
'name' => 'monitoring_uptimerobot_api_keys', 'value' => $setting->getValue('monitoring_uptimerobot_api_keys'),
'tooltip' => 'Create per-monitor API keys and save them here to propagate your uptime statistics.'
);