summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-02-03 21:00:12 +0000
committerTom Needham <needham.thomas@gmail.com>2012-02-03 21:00:12 +0000
commitee88ded463b24a9b9cd8ba78a5df8657159eeef8 (patch)
treef9cf3de7600647e113f94271fb82377e737777b8 /apps/bookmarks
parent0bbc9ade7d51c73b4bffc13f21fbab5561fd075c (diff)
downloadnextcloud-server-ee88ded463b24a9b9cd8ba78a5df8657159eeef8.tar.gz
nextcloud-server-ee88ded463b24a9b9cd8ba78a5df8657159eeef8.zip
more commenting out for debugging, added logging commands
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/appinfo/app.php4
-rw-r--r--apps/bookmarks/lib/migrate.php19
2 files changed, 12 insertions, 11 deletions
diff --git a/apps/bookmarks/appinfo/app.php b/apps/bookmarks/appinfo/app.php
index 479d8ed4767..54812188418 100644
--- a/apps/bookmarks/appinfo/app.php
+++ b/apps/bookmarks/appinfo/app.php
@@ -17,3 +17,7 @@ OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'hr
OC_App::registerPersonal('bookmarks', 'settings');
require_once('apps/bookmarks/lib/search.php');
OC_Util::addScript('bookmarks','bookmarksearch');
+
+// Include the migration provider
+
+require_once('apps/bookmarks/lib/migrate.php'); \ No newline at end of file
diff --git a/apps/bookmarks/lib/migrate.php b/apps/bookmarks/lib/migrate.php
index 2e6581cd9fa..d5a6a75ca82 100644
--- a/apps/bookmarks/lib/migrate.php
+++ b/apps/bookmarks/lib/migrate.php
@@ -1,18 +1,15 @@
<?php
-
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
- $this->appid = 'bookmarks';
// Create the xml for the user supplied
function export($uid){
- $xml = '';
- $query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
- $bookmarks = $query->execute($uid);
- OC_Log::write('user_migrate',print_r($bookmarks));
- foreach($bookmarks as $bookmark){
- $xml .= '<bookmark>';
- $xml .='DATA WILL BE HERE';
- $xml .= '</bookmark>';
- }
+ $xml = 'debugfrombookmarks';
+ //$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
+ //$bookmarks = $query->execute($uid);
+ //foreach($bookmarks as $bookmark){
+ // $xml .= '<bookmark>';
+ // $xml .='DATA WILL BE HERE';
+ // $xml .= '</bookmark>';
+ //}
return $xml;
}
}