No need to use array_search
This commit is contained in:
parent
fe40277ec2
commit
c5983d37ad
|
@ -13,7 +13,7 @@ class OC_TemplateLayout extends OC_Template {
|
||||||
if( $renderas == 'user' ) {
|
if( $renderas == 'user' ) {
|
||||||
parent::__construct( 'core', 'layout.user' );
|
parent::__construct( 'core', 'layout.user' );
|
||||||
$this->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' ), false);
|
$this->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' ), false);
|
||||||
if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false) {
|
if(in_array(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false) {
|
||||||
$this->assign('bodyid','body-settings', false);
|
$this->assign('bodyid','body-settings', false);
|
||||||
}else{
|
}else{
|
||||||
$this->assign('bodyid','body-user', false);
|
$this->assign('bodyid','body-user', false);
|
||||||
|
|
Loading…
Reference in New Issue