require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '3.1.1561' );
+define ( 'FRIENDICA_VERSION', '3.1.1565' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1157 );
closedir($dh);
}
}
+
+function set_template_engine(&$a, $engine = 'internal') {
+
+ $a->theme['template_engine'] = 'internal';
+
+ if(is_writable('view/smarty3/')) {
+ switch($engine) {
+ case 'smarty3':
+ $a->theme['template_engine'] = 'smarty3';
+ break;
+ default:
+ break;
+ }
+ }
+}