minor changes

This commit is contained in:
tomash 2006-03-21 01:33:41 +00:00
parent 74b9d3784a
commit 5d462e4c82
2 changed files with 4 additions and 2 deletions

View file

@ -28,6 +28,8 @@
------------------------------------------------------------------------------*/
require_once "Playlist.php";
define('INDCH', ' ');
define('AC_URL_RELPATH', '../audioClip/');
define('PL_URL_RELPATH', '../playlist/');

View file

@ -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);