mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Now loads only the templates with text/html as mime type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user