Update of /cvs/scoop/scoop/lib/Scoop/Admin
In directory lithium.sabren.com:/tmp/cvs-serv24010/lib/Scoop/Admin
Modified Files:
AdminStories.pm
Log Message:
Adding a var to enable requiring tags for story posting, if desired. -j
Index: AdminStories.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Admin/AdminStories.pm,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -d -r1.149 -r1.150
*** AdminStories.pm 14 Oct 2005 20:07:09 -0000 1.149
--- AdminStories.pm 13 Jan 2006 21:14:10 -0000 1.150
***************
*** 576,579 ****
--- 576,583 ----
return (0, 'Please choose a shorter title.');
}
+ # and make sure we have tags if we require them
+ if($S->var('use_tags') && $S->var('require_tags')){
+ return (0, 'Please include at least one tag with your story.') unless $params{tags};
+ }
} else {
# check to see if story is moving out of edit queue