Privatize Sanitize::isSetup()
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
2756f27249
commit
5b8168ded6
@ -17,7 +17,6 @@ namespace PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\Forms\User\UserFormList;
|
||||
use PhpMyAdmin\Html\MySQLDocumentation;
|
||||
use PhpMyAdmin\Sanitize;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
use function __;
|
||||
@ -104,8 +103,9 @@ class FormDisplay
|
||||
|
||||
public function __construct(private ConfigFile $configFile)
|
||||
{
|
||||
$this->formDisplayTemplate = new FormDisplayTemplate(Config::getInstance());
|
||||
$this->isSetupScript = Sanitize::isSetup();
|
||||
$config = Config::getInstance();
|
||||
$this->formDisplayTemplate = new FormDisplayTemplate($config);
|
||||
$this->isSetupScript = $config->isSetup();
|
||||
// initialize validators
|
||||
Validator::getValidators($this->configFile);
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ class Sanitize
|
||||
/**
|
||||
* Check if we are currently on a setup folder page
|
||||
*/
|
||||
public static function isSetup(): bool
|
||||
private static function isSetup(): bool
|
||||
{
|
||||
return Config::getInstance()->isSetup();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user