From 1274889931925389add1fd52d07d90eb03a70b62 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 17 Nov 2016 11:00:34 -0800 Subject: issue #588, change 'Bug Report' app to 'Report Bug' --- boot.php | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index ac809cce6..aa1da5fdc 100755 --- a/boot.php +++ b/boot.php @@ -632,6 +632,14 @@ function sys_boot() { date_default_timezone_set(App::$timezone); + if(! defined('DEFAULT_PLATFORM_ICON')) { + define( 'DEFAULT_PLATFORM_ICON', '/images/hz-32.png' ); + } + + if(! defined('DEFAULT_NOTIFY_ICON')) { + define( 'DEFAULT_NOTIFY_ICON', '/images/hz-white-32.png' ); + } + /* * Try to open the database; */ @@ -956,7 +964,7 @@ class App { self::$is_mobile = $mobile_detect->isMobile(); self::$is_tablet = $mobile_detect->isTablet(); - self::head_set_icon('/images/hz-32.png'); + self::head_set_icon(DEFAULT_PLATFORM_ICON); /* * register template engines @@ -969,14 +977,7 @@ class App { $smarty = new Zotlabs\Render\SmartyTemplate(); /// @todo validate if this is still the desired behavior self::register_template_engine(get_class($smarty)); -/* - $dc = get_declared_classes(); - foreach ($dc as $k) { - if(in_array('Zotlabs\\Render\\TemplateEngine', class_implements($k))) { - self::register_template_engine($k); - } - } -*/ + } public static function get_baseurl($ssl = false) { @@ -1735,14 +1736,6 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) { */ function killme() { - // Ensure that closing the database is the last function on the shutdown stack. - // If it is closed prematurely sessions might not get saved correctly. - // Note the second arg to PHP's session_set_save_handler() seems to order that shutdown - // procedure last despite our best efforts, so we don't use that and implictly - // call register_shutdown_function('session_write_close'); within Zotlabs\Web\Session::init() - // and then register the database close function here where nothing else can register - // after it. - register_shutdown_function('shutdown'); exit; } -- cgit v1.2.3