From ac2486564771837291a66fe706029bc04fd0d226 Mon Sep 17 00:00:00 2001
From: Isaac Connor
Date: Tue, 4 Oct 2016 14:33:51 -0400
Subject: [PATCH] add NoDetectProfiles instead of reusing NoDetectedCameras
---
web/skins/classic/views/onvifprobe.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/web/skins/classic/views/onvifprobe.php b/web/skins/classic/views/onvifprobe.php
index 7f8d6ed7f..01e52ee38 100644
--- a/web/skins/classic/views/onvifprobe.php
+++ b/web/skins/classic/views/onvifprobe.php
@@ -27,6 +27,8 @@ if ( !canEdit( 'Monitors' ) )
$cameras = array();
$cameras[0] = translate('ChooseDetectedCamera');
+$profiles = array();
+$profiles[0] = translate('ChooseDetectedProfile');
function execONVIF( $cmd ) {
$shell_command = escapeshellcmd(ZM_PATH_BIN . "/zmonvif-probe.pl $cmd");
@@ -255,11 +257,11 @@ else if($_REQUEST['step'] == "2")
$monitor['Path'] = $profile['Path'];
// $sourceDesc = htmlspecialchars(serialize($monitor));
$sourceDesc = base64_encode(serialize($monitor));
- $cameras[$sourceDesc] = $sourceString;
+ $profiles[$sourceDesc] = $sourceString;
}
- if ( count($cameras) <= 0 )
- $cameras[0] = translate('NoDetectedCameras');
+ if ( count($profiles) <= 0 )
+ $profiles[0] = translate('NoDetectedProfiles');
?>
@@ -276,7 +278,7 @@ else if($_REQUEST['step'] == "2")
-
+