mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3581 - Dashlet: Add dedicated block for DashletText
This commit is contained in:
@@ -23,9 +23,9 @@ class DashletFactory
|
||||
return new DashletHeaderStatic(null, $sTitle, $sIconUrl);
|
||||
}
|
||||
|
||||
public static function MakeForDashletText(string $sId, string $sText)
|
||||
public static function MakeForDashletPlainText(string $sText, string $sId = null): DashletPlainText
|
||||
{
|
||||
return new DashletHeaderStatic($sId, '', '', $sText);
|
||||
return new DashletPlainText($sText, $sId);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user