summaryrefslogtreecommitdiff
path: root/tpl/notes/inc_relativestree.php
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-04-29 12:08:02 +0200
committerAlex Auvolat <alex@adnab.me>2018-04-29 12:08:02 +0200
commit03685416017163d38f4ef1239ca50df1e38a242a (patch)
treee6801bff28301e17ebb27812bc68c5cd6631d158 /tpl/notes/inc_relativestree.php
parentc69c046ff936c1853fb5bf10a5203ec30609d248 (diff)
downloadBits-03685416017163d38f4ef1239ca50df1e38a242a.tar.gz
Bits-03685416017163d38f4ef1239ca50df1e38a242a.zip
Add some links with ?p=update
Diffstat (limited to 'tpl/notes/inc_relativestree.php')
-rw-r--r--tpl/notes/inc_relativestree.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpl/notes/inc_relativestree.php b/tpl/notes/inc_relativestree.php
index 295e552..01cb956 100644
--- a/tpl/notes/inc_relativestree.php
+++ b/tpl/notes/inc_relativestree.php
@@ -23,7 +23,7 @@ for($id = $note['id']; $id != 0; $id = $notes_parents[$id]) {
echo '</div><div class="contents-left">';
echo '<h1>' . $note['ownername'] . '</h1><br />';
-echo '<div class="small_right"><a href="user-notes-' . $note['owner'] . '">voir tout</a></div>';
+echo '<div class="small_right"><a href="?p=user-notes-' . $note['owner'] . '">voir tout</a></div>';
function n_tree_branch($id) {
global $notest, $note, $can_new;
@@ -32,18 +32,18 @@ function n_tree_branch($id) {
if ($branch['id'] == $note['id'])
echo '<p>' . $branch['title'] . '</p>';
else
- echo '<p><a href="view-notes-' . $branch['id'] . '">' . $branch['title'] . '</a></p>';
+ echo '<p><a href="?p=view-notes-' . $branch['id'] . '">' . $branch['title'] . '</a></p>';
if (isset($notest[$branch['id']])) {
echo '<div class="tree_branch">';
n_tree_branch($branch['id']);
echo '</div>';
} else if ($can_new && $branch['id'] == $note['id']) {
echo '<div class="tree_branch">';
- if ($can_new) echo '<p><a class="tool_link" href="new-notes-' . $branch['id'] . '">+ nouvelle note</a></p>';
+ if ($can_new) echo '<p><a class="tool_link" href="?p=new-notes-' . $branch['id'] . '">+ nouvelle note</a></p>';
echo '</div>';
}
}
- if ($can_new) echo '<p><a class="tool_link" href="new-notes-' . $id . '">+ nouvelle note</a></p>';
+ if ($can_new) echo '<p><a class="tool_link" href="?p=new-notes-' . $id . '">+ nouvelle note</a></p>';
}
echo '<div class="tree_root">';