ChangeSet ID: 30843
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/12/31 12:33:50
Modified files:
tables : prefs_list.sql
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Fix the description of the 'confirm comment deletion' option (id 6).
Patch: http://cvs.winehq.org/patch.py?id=30843
Old revision New revision Changes Path
1.4 1.5 +1 -1 appdb/tables/prefs_list.sql
Index: appdb/tables/prefs_list.sql
diff -u -p appdb/tables/prefs_list.sql:1.4 appdb/tables/prefs_list.sql:1.5
--- appdb/tables/prefs_list.sql:1.4 31 Dec 2006 18:33:50 -0000
+++ appdb/tables/prefs_list.sql 31 Dec 2006 18:33:50 -0000
@@ -17,7 +17,7 @@ INSERT INTO prefs_list VALUES (0, 'sideb
INSERT INTO prefs_list VALUES (0, 'window:query', 'no', 'yes|no', 'Display query results in a new window');
INSERT INTO prefs_list VALUES (0, 'window:help', 'no', 'yes|no', 'Display help in a new window');
INSERT INTO prefs_list VALUES (0, 'window:offsite', 'no', 'yes|no', 'Display offsite URLs in a new window');
-INSERT INTO prefs_list VALUES (0, 'confirm_comment_deletion', 'yes', 'yes|no', 'Asks why you are deleting a comment before to delete it');
+INSERT INTO prefs_list VALUES (0, 'confirm_comment_deletion', 'yes', 'yes|no', 'Ask why you are deleting a comment before deleting it');
INSERT INTO prefs_list VALUES (0, 'query:mode', 'view', 'view|edit', 'Default API details mode');
INSERT INTO prefs_list VALUES (0, 'query:hide_header', 'no', 'yes|no', 'Hide apidb header in query results');
INSERT INTO prefs_list VALUES (0, 'query:hide_sidebar', 'no', 'yes|no', 'Hide apidb sidebar in query results');
ChangeSet ID: 30841
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/12/30 00:15:33
Modified files:
admin : adminMaintainerQueue.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
If the admin has not modified the field for a personalized response to a
maintainer application, do not include it in the e-mail sent to the user.
Patch: http://cvs.winehq.org/patch.py?id=30841
Old revision New revision Changes Path
1.34 1.35 +8 -2 appdb/admin/adminMaintainerQueue.php
Index: appdb/admin/adminMaintainerQueue.php
diff -u -p appdb/admin/adminMaintainerQueue.php:1.34 appdb/admin/adminMaintainerQueue.php:1.35
--- appdb/admin/adminMaintainerQueue.php:1.34 30 Dec 2006 6:15:33 -0000
+++ appdb/admin/adminMaintainerQueue.php 30 Dec 2006 6:15:33 -0000
@@ -11,6 +11,9 @@ require_once(BASE."include/maintainer.ph
require_once(BASE."include/application.php");
require_once(BASE."include/mail.php");
+/* The initial help text displayed in the admin's response field */
+$sReplyTextHelp = "Enter a personalized reason for accepting or rejecting the user's maintainer request here";
+
$aClean = array(); //array of filtered user input
$aClean['sSub'] = makeSafe( $_REQUEST['sSub'] );
@@ -19,10 +22,13 @@ $aClean['sAdd'] = makeSafe( $_REQUEST['s
$aClean['sReject'] = makeSafe( $_REQUEST['sReject'] );
$aClean['sReplyText'] = makeSafe( $_REQUEST['sReplyText'] );
+/* If the admin's response text has not been modified, it should not be included in the e-mail sent to the rejected/accepted maintainer */
+if($aClean['sReplyText'] == $sReplyTextHelp)
+ $aClean['sReplyText'] = "";
+
if(!$_SESSION['current']->hasPriv("admin"))
util_show_error_page_and_exit("Insufficient privileges.");
-
if ($aClean['sSub'])
{
if ($aClean['iMaintainerId'])
@@ -61,7 +67,7 @@ if ($aClean['sSub'])
//email response
echo '<tr valign=top><td class=color0><b>Email reply</b></td>',"\n";
- echo "<td><textarea name='sReplyText' rows=10 cols=35>Enter a personalized reason for acceptance or rejection of the users maintainer request here</textarea></td></tr>\n";
+ echo "<td><textarea name='sReplyText' rows=10 cols=35>$sReplyTextHelp</textarea></td></tr>\n";
/* Add button */
echo '<tr valign=top><td class=color3 align=center colspan=2>' ,"\n";
ChangeSet ID: 30840
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/12/30 00:13:46
Modified files:
include : maintainer.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Add a URL to the application/version and a few line breaks.
Patch: http://cvs.winehq.org/patch.py?id=30840
Old revision New revision Changes Path
1.21 1.22 +9 -3 appdb/include/maintainer.php
Index: appdb/include/maintainer.php
diff -u -p appdb/include/maintainer.php:1.21 appdb/include/maintainer.php:1.22
--- appdb/include/maintainer.php:1.21 30 Dec 2006 6:13:46 -0000
+++ appdb/include/maintainer.php 30 Dec 2006 6:13:46 -0000
@@ -82,13 +82,19 @@ class maintainer
$sEmail = $oUser->sEmail;
if ($sEmail)
{
+ if($this->iVersionId)
+ $sURL = APPDB_ROOT."appview.php?iVersionId=$this->iVersionId";
+ else
+ $sURL = APPDB_ROOT."appview.php?iAppId=$this->iAppId";
+
$sSubject = "Application Maintainer Request Report";
- $sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted. ";
- $sMsg .= $sReplyText;
+ $sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted.\n";
+ $sMsg .= "$sURL\n";
+ $sMsg .= "$sReplyText\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users.\n\n";
mail_appdb($sEmail, $sSubject ,$sMsg);
- }
+ }
}
} else
{