summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-13 16:21:17 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-13 16:21:17 +0000
commit4d5646a59f813e09455c78d840d0f62397ec60ad (patch)
treef22c4bd65a4f6bca4b5669c2ca93ac599c1f90b3 /apps/bookmarks
parentd108bdc7c7940d23355c9a16f3f355387bbb66ef (diff)
downloadnextcloud-server-4d5646a59f813e09455c78d840d0f62397ec60ad.tar.gz
nextcloud-server-4d5646a59f813e09455c78d840d0f62397ec60ad.zip
Find migrate.php even for disabled apps. Improve ui for user and admin migrations
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/appinfo/app.php4
-rw-r--r--apps/bookmarks/lib/migrate.php1
2 files changed, 1 insertions, 4 deletions
diff --git a/apps/bookmarks/appinfo/app.php b/apps/bookmarks/appinfo/app.php
index 13d76e08179..b9c308ca053 100644
--- a/apps/bookmarks/appinfo/app.php
+++ b/apps/bookmarks/appinfo/app.php
@@ -18,8 +18,4 @@ OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'hr
OC_App::registerPersonal('bookmarks', 'settings');
OC_Util::addScript('bookmarks','bookmarksearch');
-// Include the migration provider
-
-require_once('apps/bookmarks/lib/migrate.php');
-
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
diff --git a/apps/bookmarks/lib/migrate.php b/apps/bookmarks/lib/migrate.php
index 451699ec15f..8387f706038 100644
--- a/apps/bookmarks/lib/migrate.php
+++ b/apps/bookmarks/lib/migrate.php
@@ -54,4 +54,5 @@ class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
}
+// Load the provider
new OC_Migrate_Provider_Bookmarks( 'bookmarks' ); \ No newline at end of file