1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Bugfix watchlist: Fix variable name

This commit is contained in:
Starbeamrainbowlabs 2020-01-05 20:48:55 +00:00
parent 91f96849b8
commit e6fd579bf1
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,7 +1,7 @@
<?php <?php
register_module([ register_module([
"name" => "User watchlists", "name" => "User watchlists",
"version" => "0.1.1", "version" => "0.1.2",
"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.",
"id" => "feature-watchlist", "id" => "feature-watchlist",
@ -102,7 +102,6 @@ register_module([
* @apiGroup Settings * @apiGroup Settings
* @apiPermission User * @apiPermission User
* *
* TODO: Finish filling this out
* @apiParam {string} pagename The name of the page to operate on. * @apiParam {string} pagename The name of the page to operate on.
* @apiParam {string} do The thing to do. Supported verbs: add, remove, clear. The first 2 require the page GET parameter to be specified, but the clear verb doesn't (as it clears the entire list). * @apiParam {string} do The thing to do. Supported verbs: add, remove, clear. The first 2 require the page GET parameter to be specified, but the clear verb doesn't (as it clears the entire list).
* @apiParam {string} returnto Optional. Specifies a URL to redirect to (with the http status code 302) upon success. * @apiParam {string} returnto Optional. Specifies a URL to redirect to (with the http status code 302) upon success.
@ -243,9 +242,7 @@ register_module([
$chars_changed = strlen($new_data) - strlen($old_data); $chars_changed = strlen($new_data) - strlen($old_data);
$chars_changed_text = ($chars_changed < 0 ? "removes " : "adds ") . "$chars_changed characters"; $chars_changed_text = ($chars_changed < 0 ? "removes " : "adds ") . "$chars_changed characters";
// Calculate the stem from the current full URL by stripping everything after the question mark ('?') $url_stem = url_stem();
$url_stem = full_url();
if(mb_strrpos($url_stem, "?") !== false) $url_steam = mb_substr($url_stem, mb_strrpos($url_stem, "?"));
email_users( email_users(
$usernames, $usernames,