public function popApp()
{
/* Pop the current application off of the stack. */
$previous = array_pop($this->_appStack);
/* Import the new active application's configuration values
* and set the gettext domain and the preferred language. */
$app = $this->getApp();
if ($app) {
/* Load config and prefs. */
$this->importConfig('horde');
$this->importConfig($app);
$this->loadPrefs($app);
$this->setTextdomain($app, $this->get('fileroot', $app) . '/locale');
}
return $previous;
}