summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/View.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/View.class.php b/src/lib/View.class.php
index f0afa39..33a9c4e 100644
--- a/src/lib/View.class.php
+++ b/src/lib/View.class.php
@@ -29,6 +29,10 @@ class View {
*/
private function chooseBetweenEquals($extensions) {
if (count($extensions)<1) return false;
+ $pref = array('html');
+ foreach ($pref as $ext) {
+ if (in_array($ext, $extensions)) return $ext;
+ }
return $extensions[0]; // XXX: Worst. Solution. Ever.
}