[fusionregistry-commitlog] SF.net SVN: fusionregistry: [42] branches/stable_3_0_x/upload/sources/
Brought to you by:
copland007
|
From: SVN c. <fus...@li...> - 2008-02-13 19:06:29
|
Revision: 42
http://fusionregistry.svn.sourceforge.net/fusionregistry/?rev=42&view=rev
Author: copland007
Date: 2008-02-13 11:06:25 -0800 (Wed, 13 Feb 2008)
Log Message:
-----------
Make view count increment on viewing registry item a shutdown_update instead of direct update.
Modified Paths:
--------------
branches/stable_3_0_x/upload/sources/components_public/fusionscripts/fusionregistry/item.php
Modified: branches/stable_3_0_x/upload/sources/components_public/fusionscripts/fusionregistry/item.php
===================================================================
--- branches/stable_3_0_x/upload/sources/components_public/fusionscripts/fusionregistry/item.php 2008-02-13 06:54:06 UTC (rev 41)
+++ branches/stable_3_0_x/upload/sources/components_public/fusionscripts/fusionregistry/item.php 2008-02-13 19:06:25 UTC (rev 42)
@@ -1373,7 +1373,7 @@
}
// Update the views counter for this vehicle
- $this->ipsclass->DB->query("UPDATE ibf_registry_items SET views=views+1 WHERE id='". $this->ipsclass->input['CID'] ."'");
+ $this->ipsclass->DB->do_shutdown_update( 'registry_items', array( 'views' => $vehicle_data[views]+1 ), "id='{$this->ipsclass->input['CID']}'" );
// Since we are not directly outputing the modifications, but instead
// compiling them and then printing them out we can benefit by this
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|