Remove useless file_exists() check for composer autoloader in install.php
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Sep 2021 11:45:40 +0000 (13:45 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Sep 2021 11:45:40 +0000 (13:45 +0200)
The autoloader must exist at that point.

wcfsetup/install.php

index d26d943a92d2290a6fbd19fb4546f187722623a0..4bbda85e9b7b9a6f5b67456083d3cda848d8f8ad 100644 (file)
@@ -1233,9 +1233,7 @@ if (!class_exists('wcf\system\WCFSetup')) {
 }
 
 // Composer autoloader
-if (file_exists(TMP_DIR.'install/files/lib/system/api/autoload.php')) {
-       require_once(TMP_DIR.'install/files/lib/system/api/autoload.php');
-}
+require_once(TMP_DIR.'install/files/lib/system/api/autoload.php');
 
 // start setup
 new \wcf\system\WCFSetup();