*/
public function getProfileID() {
if ( $this->profileID === false ) {
- return wfWikiID();
+ return WikiMap::getCurrentWikiDomain()->getId();
} else {
return $this->profileID;
}
abstract public function scopedProfileIn( $section );
/**
- * @param SectionProfileCallback &$section
+ * @param SectionProfileCallback|null &$section
*/
public function scopedProfileOut( SectionProfileCallback &$section = null ) {
$section = null;