Skip to content

Commit

Permalink
*6341* Fixed word count
Browse files Browse the repository at this point in the history
  • Loading branch information
jnugent committed May 23, 2014
1 parent a3d5130 commit 06c5771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/author/form/submit/AuthorSubmitStep3Form.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function AuthorSubmitStep3Form(&$article, &$journal, $request) {
$section = $sectionDao->getSection($article->getSectionId());
$abstractWordCount = $section->getAbstractWordCount();
if (isset($abstractWordCount) && $abstractWordCount > 0) {
$this->addCheck(new FormValidatorCustom($this, 'abstract', 'required', 'author.submit.form.wordCountAlert', create_function('$abstract, $wordCount', 'foreach ($abstract as $localizedAbstract) {return count(explode(" ",$localizedAbstract)) < $wordCount; }'), array($abstractWordCount)));
$this->addCheck(new FormValidatorCustom($this, 'abstract', 'required', 'author.submit.form.wordCountAlert', create_function('$abstract, $wordCount', 'foreach ($abstract as $localizedAbstract) {return count(explode(" ",strip_tags($localizedAbstract))) < $wordCount; }'), array($abstractWordCount)));
}

}
Expand Down Expand Up @@ -219,7 +219,7 @@ function execute() {
$author->setSequence($authors[$i]['seq']);

HookRegistry::call('Author::Form::Submit::AuthorSubmitStep3Form::Execute', array(&$author, &$authors[$i]));

if ($isExistingAuthor) {
$authorDao->updateAuthor($author);
} else {
Expand Down

0 comments on commit 06c5771

Please sign in to comment.