# posix_getegid() *not* getmygid() because we want the group of the webserver,
# not whoever owns the current script.
$gid = posix_getegid();
- $getpwuid = posix_getpwuid( $gid );
- $group = $getpwuid['name'];
+ $group = posix_getpwuid( $gid )['name'];
return $group;
}
return false;
}
+ if ( !function_exists( 'mb_substr' ) ) {
+ $this->showError( 'config-mbstring-absent' );
+
+ return false;
+ }
+
return true;
}
}
if ( !$caches ) {
- $key = 'config-no-cache';
- // PHP >=5.5 is called APCu, earlier versions use APC (T61998).
- if ( !wfIsHHVM() && version_compare( PHP_VERSION, '5.5', '>=' ) ) {
- // config-no-cache-apcu
- $key .= '-apcu';
- }
+ $key = 'config-no-cache-apcu';
$this->showMessage( $key );
}
wfMessage( 'mainpagedocfooter' )->inContentLanguage()->text()
);
- $page->doEditContent( $content,
+ $status = $page->doEditContent( $content,
'',
EDIT_NEW,
false,