Alexander Nicolaysen Sørnes : Allow maintainers to modify screenshot description when processing queued items
Chris Morgan
cmorgan at winehq.org
Thu Sep 27 08:23:13 CDT 2007
Module: appdb
Branch: master
Commit: 53a6360ec0c23bc4f8309d6ad4654de4608d820a
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=53a6360ec0c23bc4f8309d6ad4654de4608d820a
Author: Alexander Nicolaysen Sørnes <alexander at alex.alexstyrt>
Date: Thu Sep 27 11:53:31 2007 +0200
Allow maintainers to modify screenshot description when processing queued items
---
include/appData.php | 13 +++----------
include/screenshot.php | 7 +++----
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/include/appData.php b/include/appData.php
index a4cbe2a..a831acd 100644
--- a/include/appData.php
+++ b/include/appData.php
@@ -94,25 +94,18 @@ class appData
return TRUE;
}
- function update($bSilent = FALSE)
+ function update()
{
if(!$this->canEdit())
return FALSE;
- $sQuery = "UPDATE appData SET versionId = '?', appId = '?', sDescription = '?'
+ $sQuery = "UPDATE appData SET versionId = '?', appId = '?', description = '?'
WHERE id = '?'";
- $hResult = query_parameters($this->iVersionId, $this->iAppId,
+ $hResult = query_parameters($sQuery, $this->iVersionId, $this->iAppId,
$this->sDescription, $this->iId);
if(!$hResult)
- {
- if(!$bResult)
- addmsg("Failed to update add data", "red");
return FALSE;
- }
-
- if(!$bSilent)
- addmsg("Updated app data successfully", "green");
return TRUE;
}
diff --git a/include/screenshot.php b/include/screenshot.php
index 9f7da6e..611b83b 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -669,14 +669,13 @@ class screenshot
function getOutputEditorValues($aClean)
{
- /* STUB: No update possible, reply text fetched from $aClean */
- return TRUE;
+ $this->sDescription = $aClean['sDescription'];
}
function update()
{
- /* STUB: No updating possible at the moment */
- return TRUE;
+ $oAppData = new appData($this->iScreenshotId, null, $this);
+ return $oAppData->update();
}
function objectHideDelete()
More information about the wine-cvs
mailing list