diff --git a/web/app/Controller/AppController.php b/web/app/Controller/AppController.php index 673aaab7e..60066e2ee 100644 --- a/web/app/Controller/AppController.php +++ b/web/app/Controller/AppController.php @@ -66,10 +66,12 @@ class AppController extends Controller { } Configure::write('SCALE_BASE', 100); if ($this->AppModel->daemonStatus()) { - $this->set('daemonStatus', ('Running')); + $this->set('daemonStatusHtml', ('Running')); } else { - $this->set('daemonStatus', ('Stopped')); + $this->set('daemonStatusHtml', ('Stopped')); } + + $this->set('daemonStatus', $this->AppModel->daemonStatus()); if (Configure::read('ZM_DYN_LAST_VERSION') > Configure::read('ZM_VERSION')) { $zmVersion = '' . Configure::read('ZM_VERSION') . ''; diff --git a/web/app/View/Helper/LiveStreamHelper.php b/web/app/View/Helper/LiveStreamHelper.php index b32091245..2f41240db 100644 --- a/web/app/View/Helper/LiveStreamHelper.php +++ b/web/app/View/Helper/LiveStreamHelper.php @@ -2,9 +2,14 @@ App::uses('AppHelper', 'View/Helper'); class LiveStreamHelper extends AppHelper { - public function makeLiveStream($name, $src, $id, $width) { + public function makeLiveStream($name, $src, $id, $width=0) { $liveStream = ""; return $liveStream; } + + public function showNoImage($name, $src, $id, $width=0) { + $liveStream = ""; + return $liveStream; + } } ?> diff --git a/web/app/View/Layouts/default.ctp b/web/app/View/Layouts/default.ctp index 79572324c..4b79136ff 100644 --- a/web/app/View/Layouts/default.ctp +++ b/web/app/View/Layouts/default.ctp @@ -45,7 +45,7 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework