Convert from timestamp to datetime. Datetime is consistent between mysql 4.0x and newer
versions and is faster for date/time computations. Modify object creation methods to specify any time fields that were previously updated with timestamp properties.
This commit is contained in:
@@ -54,7 +54,8 @@ class Url {
|
||||
/**
|
||||
* Creates a new url.
|
||||
*/
|
||||
function create($sDescription = null, $sUrl = null, $iVersionId = null, $iAppId = null, $bSilent = false)
|
||||
function create($sDescription = null, $sUrl = null, $iVersionId = null,
|
||||
$iAppId = null, $bSilent = false)
|
||||
{
|
||||
global $aClean;
|
||||
|
||||
@@ -64,11 +65,11 @@ class Url {
|
||||
$this->bQueued = true;
|
||||
|
||||
$hResult = query_parameters("INSERT INTO appData (appId, versionId, type,
|
||||
description, queued, submitterId, url)
|
||||
VALUES ('?', '?', '?', '?', '?', '?', '?')",
|
||||
description, queued, submitTime, submitterId, url)
|
||||
VALUES ('?', '?', '?', '?', '?', ?, '?', '?')",
|
||||
$iAppId, $iVersionId, "url", $sDescription,
|
||||
$this->bQueued ? "true" : "false",
|
||||
$_SESSION['current']->iUserId, $sUrl);
|
||||
"NOW()", $_SESSION['current']->iUserId, $sUrl);
|
||||
|
||||
if(!$hResult)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user