Permalink
Browse files

EZP-28174: Improved error message when target of eznode:// and ezobje…

…ct:// links doesn't exists (#1333)
  • Loading branch information...
adamwojs authored and andrerom committed Nov 29, 2017
1 parent fc42f72 commit 4a69a7dc3c37bf75dc4e1ce70657536033acf23e
Showing with 6 additions and 6 deletions.
  1. +6 −6 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
{

0 comments on commit 4a69a7d

Please sign in to comment.