issue #588, change 'Bug Report' app to 'Report Bug'

This commit is contained in:
zotlabs 2016-11-17 11:00:34 -08:00
parent 0e8b13841a
commit 1274889931
4 changed files with 14 additions and 21 deletions

View File

@ -203,7 +203,7 @@ class Apps {
static public function translate_system_apps(&$arr) { static public function translate_system_apps(&$arr) {
$apps = array( $apps = array(
'Site Admin' => t('Site Admin'), 'Site Admin' => t('Site Admin'),
'Bug Report' => t('Bug Report'), 'Report Bug' => t('Report Bug'),
'View Bookmarks' => t('View Bookmarks'), 'View Bookmarks' => t('View Bookmarks'),
'My Chatrooms' => t('My Chatrooms'), 'My Chatrooms' => t('My Chatrooms'),
'Connections' => t('Connections'), 'Connections' => t('Connections'),

View File

@ -32,13 +32,13 @@ class System {
static public function get_notify_icon() { static public function get_notify_icon() {
if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['email_notify_icon_url']) if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['email_notify_icon_url'])
return \App::$config['system']['email_notify_icon_url']; return \App::$config['system']['email_notify_icon_url'];
return z_root() . '/images/hz-white-32.png'; return z_root() . DEFAULT_NOTIFY_ICON;
} }
static public function get_site_icon() { static public function get_site_icon() {
if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['site_icon_url']) if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['site_icon_url'])
return \App::$config['system']['site_icon_url']; return \App::$config['system']['site_icon_url'];
return z_root() . '/images/hz-32.png'; return z_root() . DEFAULT_PLATFORM_ICON ;
} }

View File

@ -1,3 +1,3 @@
url: https://github.com/redmatrix/hubzilla/issues url: https://github.com/redmatrix/hubzilla/issues
name: Bug Report name: Report Bug
photo: $baseurl/app/bugreport.png photo: $baseurl/app/bugreport.png

View File

@ -632,6 +632,14 @@ function sys_boot() {
date_default_timezone_set(App::$timezone); 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; * Try to open the database;
*/ */
@ -956,7 +964,7 @@ class App {
self::$is_mobile = $mobile_detect->isMobile(); self::$is_mobile = $mobile_detect->isMobile();
self::$is_tablet = $mobile_detect->isTablet(); self::$is_tablet = $mobile_detect->isTablet();
self::head_set_icon('/images/hz-32.png'); self::head_set_icon(DEFAULT_PLATFORM_ICON);
/* /*
* register template engines * register template engines
@ -969,14 +977,7 @@ class App {
$smarty = new Zotlabs\Render\SmartyTemplate(); $smarty = new Zotlabs\Render\SmartyTemplate();
/// @todo validate if this is still the desired behavior /// @todo validate if this is still the desired behavior
self::register_template_engine(get_class($smarty)); 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) { public static function get_baseurl($ssl = false) {
@ -1735,14 +1736,6 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) {
*/ */
function killme() { 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'); register_shutdown_function('shutdown');
exit; exit;
} }