diff options
Diffstat (limited to 'apps/gallery/appinfo/app.php')
-rwxr-xr-x[-rw-r--r--] | apps/gallery/appinfo/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/appinfo/app.php b/apps/gallery/appinfo/app.php index b8e7c14fcaf..3eec805957f 100644..100755 --- a/apps/gallery/appinfo/app.php +++ b/apps/gallery/appinfo/app.php @@ -44,7 +44,7 @@ OC_App::addNavigationEntry( array( class OC_GallerySearchProvider extends OC_Search_Provider{ function search($query){ $stmt = OC_DB::prepare('SELECT * FROM *PREFIX*gallery_albums WHERE uid_owner = ? AND album_name LIKE ?'); - $result = $stmt->execute(array(OC_User::getUser(),'%'.$query.'%')); + $result = $stmt->execute(array(OCP\USER::getUser(),'%'.$query.'%')); $results=array(); while($row=$result->fetchRow()){ $results[]=new OC_Search_Result($row['album_name'],'',OC_Helper::linkTo('gallery', 'index.php').'?view='.$row['album_name'],'Galleries'); |