/** * Returns true if the track on the file system matches the track in the database, false otherwise. * This effectively makes sure that a user cannot change tracks while manually updating. * * @return bool */ public function isTrackValid() { if (($track = Craft::getTrack()) && $track != CRAFT_TRACK) { return false; } return true; }