X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdispy%2Ftheme.php;h=a3b6b7f6eabd0c68370fffff65a6e75501b2a2e2;hb=5068563cf5bc67ab6d6dcc406998fa8ffa651b82;hp=ee8698cc08ff1b7daf4646c4cd20d832bc9d0e84;hpb=3cd428152d8727b838565c462f91accd35204ce1;p=friendica.git
diff --git a/view/theme/dispy/theme.php b/view/theme/dispy/theme.php
index ee8698cc08..a3b6b7f6ea 100644
--- a/view/theme/dispy/theme.php
+++ b/view/theme/dispy/theme.php
@@ -2,21 +2,29 @@
/*
* Name: Dispy
- * Description:
Dispy: Light, Spartan, Sleek, and Functional
Dispy Dark: Dark, Spartan, Sleek, and Functional
- * Version: 1.2
+ * Description: Dispy family (light, dark): Sleek and Functional Themes
+ * Version: 1.2.1
* Author: Simon
* Maintainer: Simon
* Screenshot: Screenshot
*/
-$a = get_app();
-$a->theme_info = array(
- 'family' => 'dispy',
- 'version' => '1.2'
-);
+/* If you borrow any of these functions, make sure to
+ * RENAME your functions, otherwise both themes get conflicts,
+ * and the friendica instance will get HTTP 500 errors.
+ * To paraphrase Mike: "Might wish to wrap
+ * function_name with "if(! function_exists('function_name')) ... "
+ * or rename to prefix1_function_name (prefix2_function_name), etc.
+ */
function dispy_init(&$a) {
+ $a->theme_info = array(
+ 'family' => 'dispy',
+ 'version' => '1.2.2'
+ );
+ set_template_engine($a, 'smarty3');
+
/** @purpose set some theme defaults
*/
$cssFile = null;
@@ -44,7 +52,7 @@ function dispy_init(&$a) {