summaryrefslogtreecommitdiffstats
path: root/apps/gallery
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-06 11:27:13 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-06 11:27:13 -0400
commit3b2c853916fb75968ae759e54bb61a8095debe7e (patch)
treea5aecb01d54747e0c249c904ba23405bd37e5c65 /apps/gallery
parent09bb3bfaf8bbc276ff23a2882d5591be542c0139 (diff)
downloadnextcloud-server-3b2c853916fb75968ae759e54bb61a8095debe7e.tar.gz
nextcloud-server-3b2c853916fb75968ae759e54bb61a8095debe7e.zip
Lots of refactoring to share API
Diffstat (limited to 'apps/gallery')
-rw-r--r--apps/gallery/appinfo/app.php2
-rw-r--r--apps/gallery/lib/share.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/appinfo/app.php b/apps/gallery/appinfo/app.php
index 9efb4346c3e..9103f66441d 100644
--- a/apps/gallery/appinfo/app.php
+++ b/apps/gallery/appinfo/app.php
@@ -30,7 +30,7 @@ OC::$CLASSPATH['Pictures_Managers'] = 'gallery/lib/managers.php';
OC::$CLASSPATH['Pictures_Tiles'] = 'gallery/lib/tiles.php';
OC::$CLASSPATH['OC_Share_Backend_Photo'] = 'gallery/lib/share.php';
-OCP\Share::registerBackend('photo', new OC_Share_Backend_Photo());
+// OCP\Share::registerBackend('photo', new OC_Share_Backend_Photo());
$l = OC_L10N::get('gallery');
diff --git a/apps/gallery/lib/share.php b/apps/gallery/lib/share.php
index 6f3db45375f..d6c5f40d492 100644
--- a/apps/gallery/lib/share.php
+++ b/apps/gallery/lib/share.php
@@ -19,7 +19,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-class OC_Share_Backend_Photo extends OCP\Share_Backend {
+abstract class OC_Share_Photo_Backend implements OCP\Share_Backend {
public $dependsOn = 'file';
public $supportedFileExtensions = array('jpg', 'png', 'gif');