From: Matthias Schmidt Date: Sat, 23 May 2015 15:14:26 +0000 (+0200) Subject: Mark unused erroneous TemplateEngine::hasTemplateListeners() as deprecated X-Git-Tag: 3.0.0_Beta_1~2332 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73ba5e7f2d115f6fa33e7f851bcd8d73d15aa239;p=GitHub%2FWoltLab%2FWCF.git Mark unused erroneous TemplateEngine::hasTemplateListeners() as deprecated Close #1843 --- diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index c11d9cfea8..1b4b0eddea 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -713,17 +713,11 @@ class TemplateEngine extends SingletonFactory { } /** - * Returns true if requested template has assigned template listeners. + * Returns false. * - * @param string $templateName - * @param string $application - * @return boolean + * @deprecated */ public function hasTemplateListeners($templateName, $application = 'wcf') { - if (isset($this->templateListeners[$application]) && isset($this->templateListeners[$application][$templateName])) { - return true; - } - return false; }