fix two bugs: syncdata generation and tag linking
authorChristian Weiske <cweiske@cweiske.de>
Sat, 23 Aug 2014 04:14:18 +0000 (06:14 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 23 Aug 2014 04:14:18 +0000 (06:14 +0200)
controller/guicontroller.php
lib/notestorage.php

index 92cdf9c..b07ba45 100644 (file)
@@ -115,7 +115,7 @@ class GuiController extends Controller
                     'name' => substr($rawtag, 16),
                     'id'   => $rawtag,
                     'href' => $this->urlGen->linkToRoute(
                     'name' => substr($rawtag, 16),
                     'id'   => $rawtag,
                     'href' => $this->urlGen->linkToRoute(
-                        'grauphel.gui.tag', array('tag' => $rawtag)
+                        'grauphel.gui.tag', array('rawtag' => $rawtag)
                     ),
                 );
             }
                     ),
                 );
             }
index d9ceaab..3b51763 100644 (file)
@@ -138,8 +138,8 @@ class NoteStorage
         )->fetchRow();
 
         if ($row === false) {
         )->fetchRow();
 
         if ($row === false) {
-            $syncdata = $this->getNewSyncData($this->username);
-            $this->saveSyncData($this->username, $syncdata);
+            $syncdata = $this->getNewSyncData();
+            $this->saveSyncData($syncdata);
         } else {
             $syncdata = new SyncData();
             $syncdata->latestSyncRevision = (int) $row['syncdata_latest_sync_revision'];
         } else {
             $syncdata = new SyncData();
             $syncdata->latestSyncRevision = (int) $row['syncdata_latest_sync_revision'];