SAAS-939: Add option to preferences to display login button on radio page

Change option to ON by default
This commit is contained in:
drigato 2015-07-09 15:16:54 -04:00
parent 0601bd675e
commit 670395bb2e
2 changed files with 10 additions and 2 deletions

View file

@ -27,7 +27,11 @@ class IndexController extends Zend_Controller_Action
$this->view->stationUrl = Application_Common_HTTPHelper::getStationUrl();
$this->view->displayLoginButton = Application_Model_Preference::getRadioPageDisplayLoginButton();
$displayRadioPageLoginButtonValue = Application_Model_Preference::getRadioPageDisplayLoginButton();
if ($displayRadioPageLoginButtonValue == "") {
$displayRadioPageLoginButtonValue = true;
}
$this->view->displayLoginButton = $displayRadioPageLoginButtonValue;
}