{@ $not_permitted = $XE_VALIDATOR_ERROR == '-1380'; $is_cmt = $oComment && $oComment->isExists(); $is_par = !$is_cmt && $oSourceComment && $oSourceComment->isExists(); $rulepath = $tpl_path.'../../ruleset/'.($not_permitted?'checkPassword':'insertComment').'.xml'; Context::addJsFile($rulepath, false, '', 0, 'head', true) }