# HG changeset patch # User Dan # Date 1217949121 14400 # Node ID f514dc675f3250f48488bea3af7afa91d135b7f8 # Parent 99c617146a34279c7caabec36e94aa5eb4626a3b Fixed tooltip in Powered By Enano button on the sidebar. It called $lang->get() without checking to see if languages were initted yet. diff -r 99c617146a34 -r f514dc675f32 includes/template.php --- a/includes/template.php Tue Jul 29 09:53:42 2008 -0600 +++ b/includes/template.php Tue Aug 05 11:12:01 2008 -0400 @@ -194,7 +194,7 @@ global $lang; // generate the fading button - needs to be done after sessions are started - $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? ' title="' . $lang->get('sidebar_btn_enanopowered_admin_tip') . '"' : ''; + $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN && is_object(@$lang) ) ? ' title="' . $lang->get('sidebar_btn_enanopowered_admin_tip') . '"' : ''; $this->fading_button = '
';