Browse Source

Merge pull request #276 from emanuele45/master

An undefined index error and a small improvement
emanuele45 12 years ago
parent
commit
aa01c1a960
3 changed files with 3 additions and 5 deletions
  1. 0 2
      Sources/ManageSearch.php
  2. 2 2
      Sources/Packages.php
  3. 1 1
      Sources/Subs-List.php

+ 0 - 2
Sources/ManageSearch.php

@@ -117,8 +117,6 @@ function EditSearchSettings($return_config = false)
 	$context['page_title'] = $txt['search_settings_title'];
 	$context['sub_template'] = 'show_settings';
 
-	call_integration_hook('integrate_modify_search_weights', array($factors));
-
 	// We'll need this for the settings.
 	require_once($sourcedir . '/ManageServer.php');
 

+ 2 - 2
Sources/Packages.php

@@ -961,7 +961,7 @@ function PackageInstall()
 	if (!isset($old_version) || $context['is_installed'])
 		$install_log = parsePackageInfo($packageInfo['xml'], false, 'install');
 
-	$install_finished = false;
+	$context['install_finished'] = false;
 
 	// @todo Make a log of any errors that occurred and output them?
 
@@ -1172,7 +1172,7 @@ function PackageInstall()
 		}
 		$smcFunc['db_free_result']($request);
 
-		$install_finished = true;
+		$context['install_finished'] = true;
 	}
 
 	// If there's database changes - and they want them removed - let's do it last!

+ 1 - 1
Sources/Subs-List.php

@@ -139,7 +139,7 @@ function createList($listOptions)
 
 			// The most flexible way probably is applying a custom function.
 			elseif (isset($column['data']['function']))
-				$cur_data['value'] = $column['data']['function']($list_item);
+				$cur_data['value'] = call_user_func_array($column['data']['function'], array($list_item));
 
 			// A modified value (inject the database values).
 			elseif (isset($column['data']['eval']))