mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Add watch item to nav more menu, and tweak messages.
This commit is contained in:
parent
53c6533a4c
commit
8914bff594
3 changed files with 7 additions and 1 deletions
|
@ -195,7 +195,7 @@
|
||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds per-user watchlists. When a page on a user's watchlist is edited, a notification email is sent.",
|
"description": "Adds per-user watchlists. When a page on a user's watchlist is edited, a notification email is sent.",
|
||||||
"lastupdate": 1577117322,
|
"lastupdate": 1577117779,
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -210,6 +210,8 @@ register_module([
|
||||||
header("location: $returnto");
|
header("location: $returnto");
|
||||||
$message .= " <a href='".htmlentities($returnto)."'>Click here</a> to return to your previous page.";
|
$message .= " <a href='".htmlentities($returnto)."'>Click here</a> to return to your previous page.";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
$message .= " <a href='javascript:history.back();'>Go back</a> to your previous page, or <a href='?action=watchlist'>review your watchlist</a>.</a>";
|
||||||
exit(page_renderer::render_main("Watchlist update successful", "<p>$message</p>"));
|
exit(page_renderer::render_main("Watchlist update successful", "<p>$message</p>"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,6 +170,10 @@
|
||||||
[
|
[
|
||||||
"📤 Upload",
|
"📤 Upload",
|
||||||
"index.php?action=upload"
|
"index.php?action=upload"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"🔭 Watch",
|
||||||
|
"index.php?action=watchlist-edit&do=add&page={page}"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
} },
|
} },
|
||||||
|
|
Loading…
Reference in a new issue