mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix warnings in widget editor and support default values in info.xml
This commit is contained in:
parent
18b0e28a76
commit
34840508f7
6 changed files with 68 additions and 44 deletions
|
|
@ -155,7 +155,7 @@ class WidgetModel extends Widget
|
|||
public static function getWidgetStyleInfo($widgetStyle)
|
||||
{
|
||||
// Check the widget style path.
|
||||
$widgetStyle = preg_replace('/[^a-zA-Z0-9-_]/', '', $widgetStyle);
|
||||
$widgetStyle = preg_replace('/[^a-zA-Z0-9-_]/', '', (string)$widgetStyle);
|
||||
$widgetStyle_path = self::getWidgetStylePath($widgetStyle);
|
||||
if (!$widgetStyle_path)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue