mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Add legacy option for only_app, improve wrong data error message
This commit is contained in:
parent
ba80841c5e
commit
09f2ccbb73
@ -18,6 +18,8 @@
|
||||
class etemplate_widget_link extends etemplate_widget
|
||||
{
|
||||
|
||||
protected $legacy_options = 'only_app';
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@ -61,7 +63,7 @@ class etemplate_widget_link extends etemplate_widget
|
||||
{
|
||||
// Try to explode
|
||||
if(count(explode(':',$value)) < 2) {
|
||||
throw new egw_exception_wrong_parameter("Wrong value sent to link widget, needs to be an array. ".array2string($value));
|
||||
throw new egw_exception_wrong_parameter("Wrong value sent to $this, needs to be an array. ".array2string($value));
|
||||
}
|
||||
list($app, $id) = explode(':', $value,2);
|
||||
$value = array('app' => $app, 'id' => $id);
|
||||
|
Loading…
Reference in New Issue
Block a user