Now loads only the templates with text/html as mime type

This commit is contained in:
bison-paolo
2016-11-11 16:04:48 +01:00
parent 857eef0ff6
commit 3e618a991b
+2 -2
View File
@@ -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);
}
}
}
}