Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-28174: Improved error message when target of eznode:// and ezobject:// links does not exist #82

Merged
merged 1 commit into from
Nov 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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