From 7bf3809d4f37cf1cb3ea38747d5bdf76f0dff048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Wed, 29 Nov 2017 12:40:48 +0100 Subject: [PATCH] EZP-28174: Improved error message when target of eznode:// and ezobject:// links doesn't exists --- .../ezxmltext/handlers/input/ezoeinputparser.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php b/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php index 187d45e7f12..7181f73e4dc 100644 --- a/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php +++ b/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php @@ -1250,9 +1250,9 @@ function publishHandlerLink( $element, &$params ) if ( !eZContentObject::exists( $objectID )) { $this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', - 'Object %1 does not exist.', + 'Invalid link: "%1". Target object does not exist.', false, - array( $objectID ) ); + array( $matches[0] ) ); } } /* @@ -1273,9 +1273,9 @@ function publishHandlerLink( $element, &$params ) if ( !$node instanceOf eZContentObjectTreeNode ) { $this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', - 'Node %1 does not exist.', + 'Invalid link: "%1". Target node does not exist.', false, - array( $nodeID ) ); + array( $matches[0] ) ); } } else @@ -1284,9 +1284,9 @@ function publishHandlerLink( $element, &$params ) if ( !$node instanceOf eZContentObjectTreeNode ) { $this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', - 'Node '%1' does not exist.', + 'Invalid link: "%1". Target node does not exist.', false, - array( $nodePath ) ); + array( $matches[0] ) ); } else {