PMA\libraries\ThemeManager::checkConfig PHP Метод

checkConfig() публичный Метод

Checks configuration
public checkConfig ( ) : void
Результат void
    public function checkConfig()
    {
        if ($this->theme_default != $GLOBALS['cfg']['ThemeDefault']) {
            $this->init();
        } else {
            // at least the theme path needs to be checked every time for new
            // themes, as there is no other way at the moment to keep track of
            // new or removed themes
            $this->loadThemes();
        }
    }

Usage Example

 /**
  * Test for checkConfig
  *
  * @return void
  */
 public function testCheckConfig()
 {
     $tm = new ThemeManager();
     $this->assertNull($tm->checkConfig());
 }