darcs-hash:20080922190937-5ed1f-9439cd9cff178323ac1445f33e2520260b4b267e.gz
Этот коммит содержится в:
Evan Prodromou 2008-09-22 15:09:37 -04:00
родитель d73ed53535
Коммит e24425d44e
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -150,6 +150,16 @@ class User extends DB_DataObject
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();
$query='SELECT notice.* ' .

Просмотреть файл

@ -497,7 +497,7 @@ function common_language() {
return $language;
}
} else {
return $config['site']['language'];
return common_config('site', 'language');
}
}
# salted, hashed passwords are stored in the DB