* (bug 11721) Use a different title for results than for the help page.
* (bug 11562) Added a user_registration parameter/field to the list=allusers query.
* (bug 11588) Preserve document structure for empty dataset in backlinks query.
-* Allow staying logged in through lg* parameters instead of cookies
* Outputting list of all user preferences rather than having to request them by name
=== Languages updated in 1.12 ===
$result['lgusername'] = $_SESSION['wsUserName'];
$result['lgtoken'] = $_SESSION['wsToken'];
$result['cookieprefix'] = $wgCookiePrefix;
+ $result['sessionid'] = $_COOKIE["{$wgCookiePrefix}_session"];
break;
case LoginForm :: NO_NAME :
* @param $enableWrite bool should be set to true if the api may modify data
*/
public function __construct($request, $enableWrite = false) {
- global $wgRequest, $wgUser;
$this->mInternalMode = ($request instanceof FauxRequest);
// Special handling for the main module: $parent === $this
parent :: __construct($this, $this->mInternalMode ? 'main_int' : 'main');
-
- // Check if request has cookie-like variables, and set them
- if( ($request->getVal('lgtoken')) && ($request->getVal('lgusername')) && ($request->getVal('lguserid')) ) {
-
- // Got variables, set cookies.
- $_SESSION['wsUserID'] = $request->getVal('lguserid');
- $_SESSION['wsUserName'] = $request->getVal('lgusername');
- $_SESSION['wsToken'] = $request->getVal('lgtoken');
-
- // Reinitialize $wgUser from session data
- $wgUser = User::newFromSession();
- }
if (!$this->mInternalMode) {