dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358793e
)
Method User::loadFromSession() is private. If you want to create a user
author
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 25 Apr 2007 20:00:18 +0000
(20:00 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 25 Apr 2007 20:00:18 +0000
(20:00 +0000)
object from a session, use the static method User::newFromSession().
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
cfb665a
..
ec3b805
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-673,10
+673,8
@@
class User {
* Load user data from the session or login cookie. If there are no valid
* credentials, initialises the user as an anon.
* @return true if the user is logged in, false otherwise
- *
- * @private
*/
- function loadFromSession() {
+
private
function loadFromSession() {
global $wgMemc, $wgCookiePrefix;
if ( isset( $_SESSION['wsUserID'] ) ) {