Skip to content

Undefined variable $exts in WireMarkupFileRegions.php #2196

@matjazpotocnik

Description

@matjazpotocnik

In core/WireMarkupFileRegions.php line 320:

if(!empty($exts)) {
    $ext = strtolower(pathinfo($value, PATHINFO_EXTENSION));
    if(!in_array($ext, $exts)) {
        $errors[] = "Unsupported extension for pw-$action region: $ext";
    }
}

What is $exts? Is this variable undefined? Is this missing: $exts = $options['etxs'];?

Similar in core/ModulesConfigs.php, line 705, $info could be undefined. Possible fix is to move
$info = $this->modules->info->getModuleInfoVerbose($moduleName); on line up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions