diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2011-02-16 18:25:18 +0300 | 
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2011-02-16 18:25:18 +0300 | 
| commit | 00772aaa62e6bce14e58e163ea72f386136c731d (patch) | |
| tree | ed658d454d8bea79d551969fffa0bc18faee5d52 /modules/gallery/helpers/gallery_task.php | |
| parent | 3e2610ea83c60805d5e727df6509da6c49fd6c7b (diff) | |
| parent | d2c77fd0590501f7b6b51d9f4cc033ed9485b082 (diff) | |
Merge remote-tracking branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/helpers/gallery_task.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_task.php | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php index e69ff91a..4a97d865 100644 --- a/modules/gallery/helpers/gallery_task.php +++ b/modules/gallery/helpers/gallery_task.php @@ -1,7 +1,7 @@  <?php defined("SYSPATH") or die("No direct script access.");  /**   * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2010 Bharat Mediratta + * Copyright (C) 2000-2011 Bharat Mediratta   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by @@ -74,7 +74,7 @@ class gallery_task_Core {        // Choose the dirty images in a random order so that if we run this task multiple times        // concurrently each task is rebuilding different images simultaneously.        $result = graphics::find_dirty_images_query()->select("id") -        ->select(new Database_Expression("RAND() as r")) +        ->select(db::expr("RAND() as r"))          ->order_by("r", "ASC")          ->execute();        $total_count = $task->get("total_count", $result->count()); @@ -608,7 +608,7 @@ class gallery_task_Core {    static function find_dupe_slugs() {      return db::build()        ->select_distinct( -        array("parent_slug" => new Database_Expression("CONCAT(`parent_id`, ':', LOWER(`slug`))"))) +        array("parent_slug" => db::expr("CONCAT(`parent_id`, ':', LOWER(`slug`))")))        ->select("id")        ->select(array("C" => "COUNT(\"*\")"))        ->from("items") @@ -620,7 +620,7 @@ class gallery_task_Core {    static function find_dupe_names() {      return db::build()        ->select_distinct( -        array("parent_name" => new Database_Expression("CONCAT(`parent_id`, ':', LOWER(`name`))"))) +        array("parent_name" => db::expr("CONCAT(`parent_id`, ':', LOWER(`name`))")))        ->select("id")        ->select(array("C" => "COUNT(\"*\")"))        ->from("items") | 
