summaryrefslogtreecommitdiffstats
path: root/apps/gallery/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/appinfo/app.php')
-rw-r--r--apps/gallery/appinfo/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/appinfo/app.php b/apps/gallery/appinfo/app.php
index f7e0651275e..325c2acf249 100644
--- a/apps/gallery/appinfo/app.php
+++ b/apps/gallery/appinfo/app.php
@@ -41,8 +41,8 @@ OC_App::addNavigationEntry( array(
'icon' => OC_Helper::imagePath('core', 'places/picture.svg'),
'name' => $l->t('Pictures')));
- class OC_GallerySearchProvider implements OC_Search_Provider{
- static function search($query){
+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.'%'));
$results=array();