From: Alexander Ebert Date: Mon, 24 Jun 2013 19:24:06 +0000 (+0200) Subject: Removing style descriptions on style delete X-Git-Tag: 2.0.0_Beta_5~142 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6078a0a85f38bbb115c0e043e8b3a71b064a6008;p=GitHub%2FWoltLab%2FWCF.git Removing style descriptions on style delete --- diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 4538256192..9b09ae587d 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -89,6 +89,12 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject if ($this->image) { @unlink(WCF_DIR.'images/'.$this->image); } + + // delete language items + $sql = "DELETE FROM wcf".WCF_N."_language_item + WHERE languageItem = ?"; + $statement = WCF::getDB()->prepareStatement($sql); + $statement->execute(array('wcf.style.styleDescription'.$this->styleID)); } /**