Alexander Nicolaysen Sørnes : maintainer : Implement checkOutputEditorInput()
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun May 9 05:02:06 CDT 2010
Module: appdb
Branch: master
Commit: 96bf714e10e2ae8adf22a61dfa9d2b0388fdc067
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=96bf714e10e2ae8adf22a61dfa9d2b0388fdc067
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Sat May 8 22:25:26 2010 +0200
maintainer: Implement checkOutputEditorInput()
---
include/maintainer.php | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/include/maintainer.php b/include/maintainer.php
index 881b315..34cef97 100644
--- a/include/maintainer.php
+++ b/include/maintainer.php
@@ -968,6 +968,19 @@ class maintainer
return $this->iMaintainerId;
}
+ public function checkOutputEditorInput($aClean)
+ {
+ $shErrors = '';
+
+ if(!getInput('iAppId', $aClean) && !getInput('iVersionId', $aClean))
+ $shErrors .= '<li>No application or version has been selected. This should never happen; please contact <a href="mailto:'.APPDB_OWNER_EMAIL.'">'.APPDB_OWNER_EMAIL.'</a></li>';
+
+ if(!getInput('sMaintainReason', $aClean))
+ $shErrors .= '<li>You need to write a short text about why you should be a maintainer</li>';
+
+ return $shErrors;
+ }
+
function getOutputEditorValues($aClean)
{
$this->iAppId = $aClean['iAppId'];
More information about the wine-cvs
mailing list