Plugin Directory

Changeset 2711282


Ignore:
Timestamp:
04/18/2022 11:27:04 PM (4 years ago)
Author:
hexydec
Message:

Fixed issue when the plugin is installed where the wrong value was written to a config option, this then prevented Javascript from being compiled.
Fixed issue where if a datasource returns false, it caused an error.

Location:
torque/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • torque/trunk/admin.php

    r2592945 r2711282  
    238238                $this->options[$group]['options'][$key]['values'] = \call_user_func($this->options[$group]['options'][$key]['datasource']);
    239239            }
    240             return $this->options[$group]['options'][$key]['values'];
     240            if ($this->options[$group]['options'][$key]['values']) {
     241                return $this->options[$group]['options'][$key]['values'];
     242            }
    241243        }
    242244        return [];
  • torque/trunk/config.php

    r2615365 r2711282  
    351351                    'description' => 'Convert quotes to the same quote style (All quotes become double quotes for better gzip)',
    352352                    'value' => '"',
    353                     'default' => true
     353                    'default' => '"'
    354354                ],
    355355                'script_booleans' => [
Note: See TracChangeset for help on using the changeset viewer.