Skip to content

Commit

Permalink
EZP-28174: Improved error message when target of eznode:// and ezobje…
Browse files Browse the repository at this point in the history
…ct:// links doesn't exists
  • Loading branch information
adamwojs committed Nov 29, 2017
1 parent fc42f72 commit 7bf3809
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] ) );
}
}
/*
Expand All @@ -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
Expand All @@ -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
{
Expand Down

0 comments on commit 7bf3809

Please sign in to comment.