From 3e618a991b989874044212adf87349e00ff7e4c4 Mon Sep 17 00:00:00 2001 From: bison-paolo Date: Fri, 11 Nov 2016 16:04:48 +0100 Subject: [PATCH] Now loads only the templates with text/html as mime type --- application/widgets/vorlage_widget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/widgets/vorlage_widget.php b/application/widgets/vorlage_widget.php index c25bc7e67..db190cc85 100644 --- a/application/widgets/vorlage_widget.php +++ b/application/widgets/vorlage_widget.php @@ -6,7 +6,7 @@ class Vorlage_widget extends Widget { $this->load->model("system/Vorlage_model", "VorlageModel"); $this->VorlageModel->addOrder("vorlage_kurzbz"); - $result = $this->VorlageModel->load(); + $result = $this->VorlageModel->loadWhere(array("mimetype" => "text/html")); if (is_object($result) && $result->error == EXIT_SUCCESS) { @@ -14,4 +14,4 @@ class Vorlage_widget extends Widget $this->view("widgets/vorlage", $data); } } -} +} \ No newline at end of file