Browse Source

A few generic fixes to errors found while testing for release

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
bd5deb67d8
3 changed files with 5 additions and 13 deletions
  1. 1 9
      Sources/Admin.php
  2. 2 2
      Themes/default/Admin.template.php
  3. 2 2
      Themes/default/GenericList.template.php

+ 1 - 9
Sources/Admin.php

@@ -39,14 +39,6 @@ function AdminMain()
 
 	// Some preferences.
 	$context['admin_preferences'] = !empty($options['admin_preferences']) ? unserialize($options['admin_preferences']) : array();
-	$context['hooks_exist'] = false;
-	foreach ($modSettings as $key => $setting)
-	if (strpos($key, 'integrate') === 0)
-		if (!empty($setting))
-		{
-			$context['hooks_exist'] = true;
-			break;
-		}
 
 	// Define all the menu structure - see Subs-Menu.php for details!
 	$admin_areas = array(
@@ -189,7 +181,7 @@ function AdminMain()
 					'function' => 'ModifyModSettings',
 					'icon' => 'modifications.png',
 					'subsections' => array(
-						'hooks' => array($txt['hooks_title_list'], 'enabled' => $context['hooks_exist']),
+						'hooks' => array($txt['hooks_title_list']),
 						'general' => array($txt['mods_cat_modifications_misc']),
 						// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
 						// 'shout' => array($txt['shout']),

+ 2 - 2
Themes/default/Admin.template.php

@@ -733,7 +733,7 @@ function template_show_settings()
 		echo '
 			<div class="cat_bar">
 				<h3 class="catbg">
-					', $context['settings_title'], ' - Bar 1
+					', $context['settings_title'], '
 				</h3>
 			</div>';
 
@@ -766,7 +766,7 @@ function template_show_settings()
 					<div class="cat_bar">
 						<h3 class="', !empty($config_var['class']) ? $config_var['class'] : 'catbg', '"', !empty($config_var['force_div_id']) ? ' id="' . $config_var['force_div_id'] . '"' : '', '>
 							', ($config_var['help'] ? '<a href="' . $scripturl . '?action=helpadmin;help=' . $config_var['help'] . '" onclick="return reqOverlayDiv(this.href);" class="help"><img src="' . $settings['images_url'] . '/helptopics.png" class="icon" alt="' . $txt['help'] . '" /></a>' : ''), '
-							', $config_var['label'], ' - Bar 2
+							', $config_var['label'], '
 						</h3>
 					</div>';
 			}

+ 2 - 2
Themes/default/GenericList.template.php

@@ -62,7 +62,7 @@ function template_show_list($list_id = null)
 			<div class="flow_auto">';
 
 		// Show the page index (if this list doesn't intend to show all items).
-		if (!empty($cur_list['items_per_page']))
+		if (!empty($cur_list['items_per_page']) && !empty($cur_list['page_index']))
 			echo '
 				<div class="floatleft">
 					<div class="pagesection">', $cur_list['page_index'], '</div>
@@ -145,7 +145,7 @@ function template_show_list($list_id = null)
 			<div class="flow_auto">';
 
 		// Show the page index (if this list doesn't intend to show all items).
-		if (!empty($cur_list['items_per_page']))
+		if (!empty($cur_list['items_per_page']) && !empty($cur_list['page_index']))
 			echo '
 				<div class="floatleft">
 					<div class="pagesection">', $cur_list['page_index'], '</div>