Skip to content

Commit

Permalink
Updates class from validator to expValidator (not sure this file is e…
Browse files Browse the repository at this point in the history
…ven used at this point)
  • Loading branch information
dleffler committed Jul 26, 2011
1 parent 3117208 commit 1a8c22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/navigationmodule/actions/save_pagesetpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
// make sure the SEF name is valid
global $router;
if (empty($section->sef_name)) $section->sef_name = $router->encode($section->name);
if (!section::isValidName($section->sef_name)) validator::failAndReturnToForm('You have invalid characters in the SEF Name field.');
if (section::isDuplicateName($section)) validator::failAndReturnToForm('The name specified in the SEF Name field is a duplicate of an existing page.');
if (!section::isValidName($section->sef_name)) expValidator::failAndReturnToForm('You have invalid characters in the SEF Name field.');
if (section::isDuplicateName($section)) expValidator::failAndReturnToForm('The name specified in the SEF Name field is a duplicate of an existing page.');

if (exponent_permissions_check('manage',exponent_core_makeLocation('navigationmodule','',$section->parent))) {
// Still have to do some pageset processing, mostly handled by a handy
Expand Down

0 comments on commit 1a8c22a

Please sign in to comment.