Skip to content

Commit

Permalink
Remove impmode code
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 6, 2015
1 parent 4adcfd4 commit 0131561
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion imp/dynamic.php
Expand Up @@ -20,7 +20,6 @@
require_once __DIR__ . '/lib/Application.php';
$vars = Horde_Variables::getDefaultVariables();
Horde_Registry::appInit('imp', array(
'impmode' => Horde_Registry::VIEW_DYNAMIC,
'timezone' => in_array($vars->page, array('compose'))
));

Expand Down
13 changes: 0 additions & 13 deletions imp/lib/Application.php
Expand Up @@ -133,19 +133,6 @@ protected function _authenticated()
IMP_Auth::authenticateCallback();
}

/**
*/
protected function _init()
{
global $registry;

if (($registry->initialApp == 'imp') &&
!empty($this->initParams['impmode']) &&
($this->initParams['impmode'] != $registry->getView())) {
IMP::getInitialPage()->url->redirect();
}
}

/**
*/
public function logout()
Expand Down
4 changes: 1 addition & 3 deletions imp/smartmobile.php
Expand Up @@ -15,9 +15,7 @@
*/

require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('imp', array(
'impmode' => Horde_Registry::VIEW_SMARTMOBILE
));
Horde_Registry::appInit('imp');

$ob = new IMP_Smartmobile($injector->getInstance('Horde_Variables'));

Expand Down

0 comments on commit 0131561

Please sign in to comment.