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 92cdf9c6588184666694ff76f43b57c1307a6a91..b07ba45679051911653d9845fe9ce28b1de4161d 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 d9ceaabe6bc96a29de7cea30e8ff1e2021d31d12..3b517634a5e9e7306febf15bae09c0466c994ead 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'];