Ignore:
Timestamp:
May 3, 2020 9:58:17 PM (4 years ago)
Author:
anonymous
Message:

Refactor URLSlug() and cleanFileName(). Add simplifyAccents().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FormValidator.inc.php

    r685 r722  
    6767        'notice' => ' sc-msg-notice ',
    6868        'success' => ' sc-msg-success ',
     69        'use_raise_msg' => false,
    6970    );
    7071
     
    151152    public function addError($form_name, $msg='', $type=MSG_ERR, $file=null, $line=null)
    152153    {
     154        $app =& App::getInstance();
     155
     156        if (true === $this->getParam('use_raise_msg')) {
     157            $app->raiseMsg($msg, $type, $file, $line);
     158        }
     159
    153160        $this->errors[] = array(
    154161            'name' => $form_name,
Note: See TracChangeset for help on using the changeset viewer.