From: Christian Weiske Date: Sat, 23 Aug 2014 04:14:18 +0000 (+0200) Subject: fix two bugs: syncdata generation and tag linking X-Git-Tag: v0.1.0~1 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/580f3321c7de3becc468673a3d9bf0e2a91717a7?hp=3e3dfcc65e13be5a49423bb90fc12e67f6b613dd;ds=sidebyside fix two bugs: syncdata generation and tag linking --- diff --git a/controller/guicontroller.php b/controller/guicontroller.php index 92cdf9c..b07ba45 100644 --- a/controller/guicontroller.php +++ b/controller/guicontroller.php @@ -115,7 +115,7 @@ class GuiController extends Controller 'name' => substr($rawtag, 16), 'id' => $rawtag, 'href' => $this->urlGen->linkToRoute( - 'grauphel.gui.tag', array('tag' => $rawtag) + 'grauphel.gui.tag', array('rawtag' => $rawtag) ), ); } diff --git a/lib/notestorage.php b/lib/notestorage.php index d9ceaab..3b51763 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -138,8 +138,8 @@ class NoteStorage )->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'];