appdb/include vote.php
WineHQ
wineowner at wine.codeweavers.com
Mon Apr 23 19:22:36 CDT 2007
ChangeSet ID: 31099
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/04/23 19:22:36
Modified files:
include : vote.php
Log message:
Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Warn user when pressing the vote button without selecting a slot
Patch: http://cvs.winehq.org/patch.py?id=31099
Old revision New revision Changes Path
1.27 1.28 +5 -1 appdb/include/vote.php
Index: appdb/include/vote.php
diff -u -p appdb/include/vote.php:1.27 appdb/include/vote.php:1.28
--- appdb/include/vote.php:1.27 24 Apr 2007 0:22:36 -0000
+++ appdb/include/vote.php 24 Apr 2007 0:22:36 -0000
@@ -153,9 +153,13 @@ function vote_update($vars)
if( !is_numeric($vars['iVersionId']) OR !is_numeric($vars['iSlot']))
{
if(is_numeric($vars['iVersionId']))
+ {
+ addmsg("You need to select a voting slot", "red");
util_redirect_and_exit($oVersion->objectMakeUrl());
- else
+ } else
+ {
util_redirect_and_exit(apidb_fullurl("index.php"));
+ }
return;
}
More information about the wine-cvs
mailing list