/** * Returns the package id of the wcf package. * * @return integer */ public static final function getWcfPackageID() { // try to find package wcf id $sql = "SELECT\tpackageID\n\t\t\tFROM\twcf" . WCF_N . "_package\n\t\t\tWHERE\tpackage = 'com.woltlab.wcf'"; $statement = WCFACP::getDB()->prepareStatement($sql); $statement->execute(); $package = $statement->fetchArray(); if (!$package) { return 0; } else { return $package['packageID']; } }