aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php6
-rw-r--r--version.php4
2 files changed, 7 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 01767be39..5989f55c3 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -303,7 +303,7 @@
* @return object A single database result object
*/
- function get_data_row($query) {
+ function get_data_row($query, $callback = "") {
global $CONFIG, $DB_QUERY_CACHE;
@@ -329,6 +329,10 @@
if ((isset($CONFIG->debug)) && ($CONFIG->debug==true))
error_log("$query results cached");
$DB_QUERY_CACHE[$query] = $row;
+
+ if (!empty($callback) && is_callable($callback)) {
+ $row = $callback($row);
+ }
if ($row) return $row;
}
diff --git a/version.php b/version.php
index b2e58bb2a..e8974c0ad 100644
--- a/version.php
+++ b/version.php
@@ -12,8 +12,8 @@
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.org/
*/
-
- $version = 2009040701; // YYYYMMDD = Elgg Date
+
+ $version = 2009040801; // YYYYMMDD = Elgg Date
// XX = Interim incrementer
$release = '1.5'; // Human-friendly version name