forked from GNUsocial/gnu-social
sphinx search for notices
darcs-hash:20081120215041-099f7-db396a60755d551099122b58634b7550d5606d88.gz
This commit is contained in:
@@ -46,21 +46,6 @@ class Profile extends Memcached_DataObject
|
||||
/* the code above is auto generated do not remove the tag below */
|
||||
###END_AUTOCODE
|
||||
|
||||
function getSearchEngine() {
|
||||
require_once INSTALLDIR.'/classes/SearchEngines.php';
|
||||
static $search_engine;
|
||||
if (!isset($search_engine)) {
|
||||
if (common_config('sphinx', 'enabled')) {
|
||||
$search_engine = new SphinxSearch($this);
|
||||
} elseif ('mysql' === common_config('db', 'type')) {
|
||||
$search_engine = new MySQLSearch($this);
|
||||
} else {
|
||||
$search_engine = new PGSearch($this);
|
||||
}
|
||||
}
|
||||
return $search_engine;
|
||||
}
|
||||
|
||||
function getAvatar($width, $height=NULL) {
|
||||
if (is_null($height)) {
|
||||
$height = $width;
|
||||
|
||||
Reference in New Issue
Block a user