Commit 72a9bf38 authored by Nikolas Grottendieck's avatar Nikolas Grottendieck

Changed error message for content/url option in Tab Widget Dropdown items to...

Changed error message for content/url option in Tab Widget Dropdown items to be more specific based on feedback by @cebe
parent a34585b2
......@@ -245,7 +245,7 @@ class Tabs extends Widget
continue;
}
if (!(array_key_exists('content', $item) xor array_key_exists('url', $item))) {
throw new InvalidConfigException("Either the 'content' or the 'url' option is required.");
throw new InvalidConfigException("Either the 'content' or the 'url' option is required, but only one can be set.");
}
if (array_key_exists('url', $item)) {
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment