Browse Source

Changed error message for content/url option in Tab Widget Dropdown items to be more specific based on feedback by @cebe

tags/2.0.7
Nikolas Grottendieck 8 years ago
parent
commit
72a9bf3871
  1. 2
      Tabs.php

2
Tabs.php

@ -245,7 +245,7 @@ class Tabs extends Widget
continue; continue;
} }
if (!(array_key_exists('content', $item) xor array_key_exists('url', $item))) { 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)) { if (array_key_exists('url', $item)) {
continue; continue;

Loading…
Cancel
Save