mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 22:21:34 +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
|
class etemplate_widget_link extends etemplate_widget
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected $legacy_options = 'only_app';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@ -61,7 +63,7 @@ class etemplate_widget_link extends etemplate_widget
|
|||||||
{
|
{
|
||||||
// Try to explode
|
// Try to explode
|
||||||
if(count(explode(':',$value)) < 2) {
|
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);
|
list($app, $id) = explode(':', $value,2);
|
||||||
$value = array('app' => $app, 'id' => $id);
|
$value = array('app' => $app, 'id' => $id);
|
||||||
|
Loading…
Reference in New Issue
Block a user