Skip to content
Snippets Groups Projects

Master

Merged Patrick Barroca requested to merge master into WIP
Compare and
12 files
+ 145
10
Preferences
Compare changes
Files
12
@@ -66,12 +66,21 @@ class Admin_IndexController extends ZendAfi_Controller_Action {
}
public function getUrlWithHttpsIfNeeded($id) {
if (($id != 'FORCE_HTTPS') ||
(Class_AdminVar::get('FORCE_HTTPS') == 1))
return $this->view->url();
Class_AdminVar_ForceHTTPS::$FORCE_HTTPS = true;
return Class_Url::rootUrl().$this->view->url();
}
public function adminvareditAction() {
$id = $this->_getParam('cle');
$var = Class_AdminVar::find($id);
$form = $var->getForm();
$form->setAction($this->view->url());
$form->setAction($this->getUrlWithHttpsIfNeeded($id));
$form->setAttrib('data-backurl',
$this->view->url(['module' => 'admin',
'controller' => 'index',