From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/api/ApiWatch.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'includes/api/ApiWatch.php') diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index fa382b3b..0509f1f8 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -4,7 +4,7 @@ * * Created on Jan 4, 2008 * - * Copyright © 2008 Yuri Astrakhan @gmail.com, + * Copyright © 2008 Yuri Astrakhan "@gmail.com", * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,7 +88,10 @@ class ApiWatch extends ApiBase { ApiBase::PARAM_REQUIRED => true ), 'unwatch' => false, - 'token' => null, + 'token' => array( + ApiBase::PARAM_TYPE => 'string', + ApiBase::PARAM_REQUIRED => true + ), ); } @@ -100,6 +103,17 @@ class ApiWatch extends ApiBase { ); } + public function getResultProperties() { + return array( + '' => array( + 'title' => 'string', + 'unwatched' => 'boolean', + 'watched' => 'boolean', + 'message' => 'string' + ) + ); + } + public function getDescription() { return 'Add or remove a page from/to the current user\'s watchlist'; } -- cgit v1.2.3-54-g00ecf