From ebe9c8cf13657b600faa232bb1a53a6ed43c5557 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 15 Jul 2021 17:38:39 -0700 Subject: [PATCH] Precaution to avoid fatal error with some admin-ui configurations. Fontello preload code removed. (some cases may use FA instead) --- e107_handlers/admin_ui.php | 6 +++++- e107_plugins/social/e_module.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 3525c2f03..3873a2613 100755 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -3912,7 +3912,11 @@ class e_admin_controller_ui extends e_admin_controller $format = !empty($opt['type']) ? ('input'.$opt['type']) : 'inputdate'; - $value = trim($value) ? e107::getDate()->toTime($value, $format) : 0; + + if($attributes['data'] !== false) + { + $value = trim($value) ? e107::getDate()->toTime($value, $format) : 0; + } } break; diff --git a/e107_plugins/social/e_module.php b/e107_plugins/social/e_module.php index 1bf44221f..93944de2c 100644 --- a/e107_plugins/social/e_module.php +++ b/e107_plugins/social/e_module.php @@ -4,7 +4,7 @@ if(e_ADMIN_AREA !==true) { e107::css('social', 'css/fontello.css'); - e107::link(array('rel'=>'preload', 'href'=> "{e_PLUGIN}social/font/fontello.woff2?21917124", 'as' => "font", 'type'=>"font/woff2", 'crossorigin' => 'anonymous')); +// e107::link(array('rel'=>'preload', 'href'=> "{e_PLUGIN}social/font/fontello.woff2?21917124", 'as' => "font", 'type'=>"font/woff2", 'crossorigin' => 'anonymous')); e107::css('social' ,'css/social.css'); $appID = false;