return $_SERVER[WCF_REQUEST_ID_HEADER] ?? '';
}
+
+ function getMinorVersion() {
+ return preg_replace('/^(\d+\.\d+)\..*$/', '\\1', WCF_VERSION);
+ }
}
namespace wcf\functions\exception {
* @return string
*/
public static function getDefaultUserAgent() {
- $version = preg_replace('/^(\d+\.\d+)\..*$/', '\\1', WCF_VERSION);
-
- return 'WoltLabSuite/'.$version;
+ return 'WoltLabSuite/'.\wcf\getMinorVersion();
}
/**
* Compiles SCSS stylesheets for ACP usage.
*/
public function compileACP() {
- if (substr(WCF_VERSION, 0, 3) == '2.1') {
- // work-around for wcf2.1 update
- return;
- }
-
$files = $this->getCoreFiles();
// ACP uses a slightly different layout