public function getThemeCookieName() { // Allow different theme per server if (isset($GLOBALS['server']) && $this->per_server) { return $this->cookie_name . '-' . $GLOBALS['server']; } else { return $this->cookie_name; } }
/** * Test for ThemeManager::getThemeCookieName * * @return void */ public function testPerServerCookieName() { $tm = new ThemeManager(); $tm->setThemePerServer(true); $this->assertEquals('pma_theme-99', $tm->getThemeCookieName()); }