public function setOriginal($filename)
{
+ if ($this->isGroup()) {
+ // Until Group avatars are handled just like profile avatars.
+ return $this->getGroup()->setOriginal($filename);
+ }
+
$imagefile = new ImageFile($this->id, Avatar::path($filename));
$avatar = new Avatar();
}
}
+ // The same as getPref but will fall back to common_config value for the same namespace/topic
+ public function getConfigPref($namespace, $topic)
+ {
+ return Profile_prefs::getConfigData($this, $namespace, $topic);
+ }
+
public function setPref($namespace, $topic, $data) {
return Profile_prefs::setData($this, $namespace, $topic, $data);
}