use BSE::Util::HTML;
use Carp 'confess';
-our $VERSION = "1.011";
+our $VERSION = "1.012";
use base 'DevHelp::Formatter';
return;
}
+ unless ($art->is_linked) {
+ $$error = "** article $dispid doesn't permit links **";
+ return;
+ }
+
+ unless ($art->listed) {
+ $$error = "** article $dispid is not listed **";
+ return;
+ }
+
+ unless ($art->is_released && !$art->is_expired) {
+ $$error = "** article $dispid is not released or is expired **";
+ return;
+ }
+
return $art;
}