From: Joshua Rüsweg Date: Sun, 11 Jun 2017 14:42:44 +0000 (+0200) Subject: Round priority to one decimal place X-Git-Tag: 3.1.0_Alpha_1~375 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7034de015d49df2c14e957a5757945620c40615d;p=GitHub%2FWoltLab%2FWCF.git Round priority to one decimal place --- diff --git a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php index a2d48ce3df..5b4dd2f761 100755 --- a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php @@ -118,7 +118,7 @@ class SitemapEditForm extends AbstractForm { public function readFormParameters() { parent::readFormParameters(); - if (isset($_POST['priority'])) $this->priority = floatval($_POST['priority']); + if (isset($_POST['priority'])) $this->priority = round(floatval($_POST['priority']), 1); if (isset($_POST['changeFreq'])) $this->changeFreq = $_POST['changeFreq']; if (isset($_POST['rebuildTime'])) $this->rebuildTime = intval($_POST['rebuildTime']); $this->isDisabled = (isset($_POST['isDisabled'])) ? 1 : 0;