minor changes
This commit is contained in:
parent
74b9d3784a
commit
5d462e4c82
2 changed files with 4 additions and 2 deletions
|
@ -28,6 +28,8 @@
|
|||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
require_once "Playlist.php";
|
||||
|
||||
define('INDCH', ' ');
|
||||
define('AC_URL_RELPATH', '../audioClip/');
|
||||
define('PL_URL_RELPATH', '../playlist/');
|
||||
|
|
|
@ -130,7 +130,7 @@ class Validator{
|
|||
if(isset($formTree[$category]['regexp'])){
|
||||
// echo "XXX {$formTree[$fname]['regexp']} / ".$node->content."\n";
|
||||
if(!preg_match("|{$formTree[$category]['regexp']}|", $value))
|
||||
return $this->_err(VAL_CONTENT, $category);
|
||||
return $this->_err(VAL_CONTENT, "$category/$value");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ class Validator{
|
|||
if(isset($formTree[$fname]['regexp'])){
|
||||
// echo "XXX {$formTree[$fname]['regexp']} / ".$node->content."\n";
|
||||
if(!preg_match("|{$formTree[$fname]['regexp']}|", $node->content))
|
||||
return $this->_err(VAL_CONTENT, $fname);
|
||||
return $this->_err(VAL_CONTENT, "$fname/{$node->content}");
|
||||
}
|
||||
// validate attributes:
|
||||
$ra = $this->validateAttributes($node, $fname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue