DataObjects/Images.php
[Pman.Core] / DataObjects / Images.php
index 2cf3492..c02df4e 100644 (file)
@@ -32,10 +32,10 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
     function applyFilters($q, $au, $roo)
     {
         $tn = $this->tableName();
-        echo "$tn.filename LIKE '%{$this->escape($q['search']['filename'])}%'"; die;
+        
         if(!empty($q['search']['filename'])){
             $this->whereAdd("
-                $tn.filename LIKE '%{$this->escape($q['search']['filename'])}%'
+                $tn.filename LIKE '%{$this->escape($q['search']['filename'])}%' OR $tn.title LIKE '%{$this->escape($q['search']['filename'])}%'
             ");
         }