Ip\Internal\Plugins\Model::executeSqlIfExists PHP Method

executeSqlIfExists() protected static method

protected static executeSqlIfExists ( $file )
    protected static function executeSqlIfExists($file)
    {
        if (is_file($file)) {
            $sql = file_get_contents($file);
            $sql = str_replace('`ip_', '`' . ipConfig()->tablePrefix(), $sql);
            if (preg_replace('/\\s+/', '', $sql) == '') {
                return;
            }
            ipDb()->execute($sql);
        }
    }