diff --git a/op/op.ApproveDocument.php b/op/op.ApproveDocument.php index f45738cca..fd6840688 100644 --- a/op/op.ApproveDocument.php +++ b/op/op.ApproveDocument.php @@ -3,6 +3,7 @@ // Copyright (C) 2002-2005 Markus Westphal // Copyright (C) 2006-2008 Malcolm Cowe // Copyright (C) 2010 Matteo Lucarelli +// Copyright (C) 2011 Uwe Steinmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -55,7 +56,7 @@ if (!is_object($content)) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version")); } -// operation is admitted only for last deocument version +// operation is only allowed for last the document version $latestContent = $document->getLatestContent(); if ($latestContent->getVersion()!=$version) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));