mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
6d26240d6d
commit
b4000d34fb
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
|
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
/**
|
/**
|
||||||
* This file is part of Icinga 2 Web.
|
* This file is part of Icinga 2 Web.
|
||||||
@ -54,7 +56,7 @@ EOT;
|
|||||||
if ($detailContent != '') {
|
if ($detailContent != '') {
|
||||||
$detailCls = '';
|
$detailCls = '';
|
||||||
$mainCls = '';
|
$mainCls = '';
|
||||||
foreach (self::$expanded as $type=>$size) {
|
foreach (self::$expanded as $type => $size) {
|
||||||
$detailCls .= 'col-' . $type . '-' . ($size == 12 ? 'push-' : '') . $size . ' ';
|
$detailCls .= 'col-' . $type . '-' . ($size == 12 ? 'push-' : '') . $size . ' ';
|
||||||
$mainCls .= 'col-' . $type . '-' . ($size == 12 ? 'pull-' : '') . ($size < 12 ? (12-$size) : 12). ' ';
|
$mainCls .= 'col-' . $type . '-' . ($size == 12 ? 'pull-' : '') . ($size < 12 ? (12-$size) : 12). ' ';
|
||||||
}
|
}
|
||||||
@ -66,4 +68,5 @@ EOT;
|
|||||||
$html = str_replace('{{DETAIL_CONTENT}}', $detailContent, $html);
|
$html = str_replace('{{DETAIL_CONTENT}}', $detailContent, $html);
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
@ -172,7 +172,7 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->getResponse()->setHttpResponseCode(401);
|
$this->getResponse()->setHttpResponseCode(401);
|
||||||
$this->getResponse()->sendHeaders();
|
$this->getResponse()->sendHeaders();
|
||||||
throw new Exception("You are not logged in");
|
throw new Exception("You are not logged in");
|
||||||
}
|
}
|
||||||
$url = Url::fromPath('/authentication/login');
|
$url = Url::fromPath('/authentication/login');
|
||||||
$this->redirectNow($url->getRelativeUrl());
|
$this->redirectNow($url->getRelativeUrl());
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,8 @@ class Form extends Zend_Form
|
|||||||
*
|
*
|
||||||
* @param boolean $bool False to not inform users when they leave modified forms, otherwise true
|
* @param boolean $bool False to not inform users when they leave modified forms, otherwise true
|
||||||
*/
|
*/
|
||||||
public function setIgnoreChangeDiscarding($bool) {
|
public function setIgnoreChangeDiscarding($bool)
|
||||||
|
{
|
||||||
$this->ignoreChangeDiscarding = (boolean) $bool;
|
$this->ignoreChangeDiscarding = (boolean) $bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user