diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-08-23 06:14:18 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-08-23 06:14:18 +0200 |
| commit | 580f3321c7de3becc468673a3d9bf0e2a91717a7 (patch) | |
| tree | 5cd1483e6e4a43c0d3b3713dce323389bafb910f | |
| parent | 3e3dfcc65e13be5a49423bb90fc12e67f6b613dd (diff) | |
| download | grauphel-580f3321c7de3becc468673a3d9bf0e2a91717a7.tar.gz grauphel-580f3321c7de3becc468673a3d9bf0e2a91717a7.zip | |
fix two bugs: syncdata generation and tag linking
| -rw-r--r-- | controller/guicontroller.php | 2 | ||||
| -rw-r--r-- | lib/notestorage.php | 4 |
2 files changed, 3 insertions, 3 deletions
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']; |
