correct a couple of bugs
darcs-hash:20080922190937-5ed1f-9439cd9cff178323ac1445f33e2520260b4b267e.gz
This commit is contained in:
parent
d73ed53535
commit
e24425d44e
@ -150,6 +150,16 @@ class User extends DB_DataObject
|
|||||||
|
|
||||||
function noticesWithFriends($offset=0, $limit=20) {
|
function noticesWithFriends($offset=0, $limit=20) {
|
||||||
|
|
||||||
|
# We clearly need a more elegant way to make this work.
|
||||||
|
|
||||||
|
if (common_config('memcached', 'enabled')) {
|
||||||
|
if ($offset + $limit <= WITHFRIENDS_CACHE_WINDOW) {
|
||||||
|
$cached = $this->noticesWithFriendsWindow();
|
||||||
|
$wrapper = new NoticeWrapper(array_slice($cached, $offset, $limit));
|
||||||
|
return $wrapper;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$notice = new Notice();
|
$notice = new Notice();
|
||||||
|
|
||||||
$query='SELECT notice.* ' .
|
$query='SELECT notice.* ' .
|
||||||
|
@ -497,7 +497,7 @@ function common_language() {
|
|||||||
return $language;
|
return $language;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return $config['site']['language'];
|
return common_config('site', 'language');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# salted, hashed passwords are stored in the DB
|
# salted, hashed passwords are stored in the DB
|
||||||
|
Loading…
Reference in New Issue
Block a user