Browse Source

Spaces and tabs at the end of the lines

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
1724ca6169

+ 1 - 1
Sources/DbExtra-sqlite.php

@@ -158,7 +158,7 @@ function smf_db_optimize_table($table)
 /**
  * This function lists all tables in the database.
  * The listing could be filtered according to $filter.
- * 
+ *
  * @param mixed $db string holding the table name, or false, default false
  * @param mixed $filter string to filter by, or false, default false
  * @return array an array of table names. (strings)

+ 1 - 1
Sources/Drafts.php

@@ -878,7 +878,7 @@ function ModifyDraftSettings($return_config = false)
 		saveDBSettings($config_vars);
 		redirectexit('action=admin;area=managedrafts');
 	}
-	
+
 	// some javascript to enable / disable the frequency input box
 	$context['settings_post_javascript'] = '
 		var autosave = document.getElementById(\'drafts_autosave_enabled\');

+ 1 - 1
Sources/Errors.php

@@ -259,7 +259,7 @@ function error_handler($error_level, $error_string, $file, $line)
 /**
  * It is called by fatal_error() and fatal_lang_error().
  * @uses Errors template, fatal_error sub template, or Wireless template, error sub template.
- * 
+ *
  * @param string $error_message
  * @param type $error_code
  */

+ 8 - 8
Sources/ManageAttachments.php

@@ -102,7 +102,7 @@ function ManageAttachmentSettings($return_config = false)
 	// If not set, show a default path for the base directory
 	if (!isset($_GET['save']) && empty($modSettings['basedirectory_for_attachments']))
 		if (is_dir($modSettings['attachmentUploadDir'][1]))
-			$modSettings['basedirectory_for_attachments'] = $modSettings['attachmentUploadDir'][1];		
+			$modSettings['basedirectory_for_attachments'] = $modSettings['attachmentUploadDir'][1];
 		else
 			$modSettings['basedirectory_for_attachments'] = $context['attachmentUploadDir'];
 
@@ -244,7 +244,7 @@ function ManageAttachmentSettings($return_config = false)
 					));
 
 					$_POST['use_subdirectories_for_attachments'] = 1;
-					$_POST['attachmentUploadDir'] = serialize($modSettings['attachmentUploadDir']);	
+					$_POST['attachmentUploadDir'] = serialize($modSettings['attachmentUploadDir']);
 
 				}
 			}
@@ -738,7 +738,7 @@ function MaintainFiles()
 	if (!empty($modSettings['attachmentDirFileLimit']))
 		$context['attachment_files'] = comma_format(max($modSettings['attachmentDirFileLimit'] - $current_dir_files, 0), 0);
 	$context['attachment_current_files'] = comma_format($current_dir_files, 0);
-	
+
 	$context['attach_multiple_dirs'] = count($attach_dirs) > 1 ? true : false;
 	$context['attach_dirs'] = $attach_dirs;
 	$context['base_dirs'] = !empty($modSettings['attachment_basedirectories']) ? unserialize($modSettings['attachment_basedirectories']) : array();
@@ -2070,7 +2070,7 @@ function ManageAttachmentPaths()
 			if (!is_array($modSettings['last_attachments_directory']))
 				$modSettings['last_attachments_directory'] = unserialize($modSettings['last_attachments_directory']);
 			$num = substr(strrchr($modSettings['attachmentUploadDir'][$_POST['current_dir']], '_'), 1);
-			
+
 			if (is_numeric($num))
 			{
 				// Need to find the base folder.
@@ -2234,7 +2234,7 @@ function ManageAttachmentPaths()
 			if (!empty($_SESSION['errors']['dir']))
 				foreach($_SESSION['errors']['dir'] as $error)
 					$errors['dir'][] = $smcFunc['htmlspecialchars']($error, ENT_QUOTES);
-			
+
 			if (!empty($_SESSION['errors']['base']))
 				foreach($_SESSION['errors']['base'] as $error)
 					$errors['base'][] = $smcFunc['htmlspecialchars']($error, ENT_QUOTES);
@@ -2586,9 +2586,9 @@ function attachDirStatus($dir, $expected_files)
 function TransferAttachments()
 {
 	global $modSettings, $context, $smcFunc, $sourcedir, $txt, $boarddir;
-	
+
 	checkSession();
-	
+
 	$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
 	if (!empty($modSettings['attachment_basedirectories']))
 		$modSettings['attachment_basedirectories'] = unserialize($modSettings['attachment_basedirectories']);
@@ -2606,7 +2606,7 @@ function TransferAttachments()
 	$current_progress = 0;
 	$total_moved = 0;
 	$total_not_moved = 0;
-	
+
 	if (empty($_POST['from']) || (empty($_POST['auto']) && empty($_POST['to'])))
 		$results[] = $txt['attachment_transfer_no_dir'];
 

+ 1 - 1
Sources/ManageServer.php

@@ -340,7 +340,7 @@ function ModifyCacheSettings($return_config = false)
 		$detected['xcache'] = $txt['xcache_cache'];
 	if (function_exists('file_put_contents'))
 		$detected['smf'] = $txt['default_cache'];
-		
+
 	// set our values to show what, if anything, we found
 	if (empty($detected))
 	{

+ 1 - 1
Sources/ManageSettings.php

@@ -2607,7 +2607,7 @@ function get_integration_hooks_count()
 
 /**
  * Parses modSettings to create integration hook array
- * 
+ *
  * @staticvar type $integration_hooks
  * @return type
  */

+ 1 - 1
Sources/MessageIndex.php

@@ -79,7 +79,7 @@ function MessageIndex()
 	// We only know these.
 	if (isset($_REQUEST['sort']) && !in_array($_REQUEST['sort'], array('subject', 'starter', 'last_poster', 'replies', 'views', 'first_post', 'last_post')))
 		$_REQUEST['sort'] = 'last_post';
-		
+
 	// Make sure the starting place makes sense and construct the page index.
 	if (isset($_REQUEST['sort']))
 		$context['page_index'] = constructPageIndex($scripturl . '?board=' . $board . '.%1$d;sort=' . $_REQUEST['sort'] . (isset($_REQUEST['desc']) ? ';desc' : ''), $_REQUEST['start'], $board_info['total_topics'], $maxindex, true);

+ 4 - 4
Sources/PersonalMessage.php

@@ -177,7 +177,7 @@ function MessageMain()
 	// Are PM drafts enabled?
 	$context['drafts_pm_save'] = !empty($modSettings['drafts_enabled']) && !empty($modSettings['drafts_pm_enabled']) && allowedTo('pm_draft');
 	$context['drafts_autosave'] = !empty($context['drafts_pm_save']) && !empty($modSettings['drafts_autosave_enabled']) && allowedTo('pm_autosave_draft');
-	
+
 	// Build the linktree for all the actions...
 	$context['linktree'][] = array(
 		'url' => $scripturl . '?action=pm',
@@ -2040,8 +2040,8 @@ function MessagePost2()
 
 	isAllowedTo('pm_send');
 	require_once($sourcedir . '/Subs-Auth.php');
-	
-	// PM Drafts enabled and needed? 
+
+	// PM Drafts enabled and needed?
 	if ($context['drafts_pm_save'] && (isset($_POST['save_draft']) || isset($_POST['id_pm_draft'])))
 		require_once($sourcedir . '/Drafts.php');
 
@@ -2311,7 +2311,7 @@ function MessagePost2()
 	if (!empty($context['send_log']) && empty($context['send_log']['failed']))
 	{
 		$context['current_label_redirect'] = $context['current_label_redirect'] . ';done=sent';
-		
+
 		// If we had a PM draft for this one, then its time to remove it since it was just sent
 		if ($context['drafts_pm_save'] && !empty($_POST['id_pm_draft']))
 			DeleteDraft($_POST['id_pm_draft']);

+ 1 - 1
Sources/Post.php

@@ -1829,7 +1829,7 @@ function Post2()
 		if (isset($topicOptions['id']))
 			$topic = $topicOptions['id'];
 	}
-	
+
 	// If we had a draft for this, its time to remove it since it was just posted
 	if (!empty($modSettings['drafts_enabled']) && !empty($_POST['id_draft']))
 		DeleteDraft($_POST['id_draft']);

+ 2 - 2
Sources/Subs-Attachments.php

@@ -139,7 +139,7 @@ function automanage_attachments_create_directory($updir)
 		// Maybe it's just the folder name
 		$tree = get_directory_tree_elements($boarddir . DIRECTORY_SEPARATOR . $updir);
 		$count = count($tree);
-	
+
 		$directory = attachments_init_dir($tree, $count);
 		if ($directory === false)
 			return false;
@@ -285,7 +285,7 @@ function get_directory_tree_elements ($directory)
 /**
  * Return the first part of a path (i.e. c:\ or / + the first directory), used by automanage_attachments_create_directory
  *
- * @param $tree an array 
+ * @param $tree an array
  * @param $count the number of elements in $tree
  *
  * @return (string)

+ 2 - 2
Sources/Subs-Boards.php

@@ -736,7 +736,7 @@ function modifyBoard($board_id, &$boardOptions)
  * Allows (almost) the same options as the modifyBoard() function.
  * With the option inherit_permissions set, the parent board permissions
  * will be inherited.
- * 
+ *
  * @param array $boardOptions
  * @return int The new board id
  */
@@ -1176,7 +1176,7 @@ function getBoardTree()
 
 /**
  * Recursively get a list of boards.
- * Used by getBoardTree 
+ * Used by getBoardTree
  *
  * @param array &$_boardList
  * @param array &$_tree

+ 3 - 3
Sources/Subs-Charset.php

@@ -14,10 +14,10 @@
 if (!defined('SMF'))
 	die('Hacking attempt...');
 
-/** 
+/**
  * Converts the given UTF-8 string into lowercase.
  * equivalent to mb_strtolower($string, 'UTF-8')
- * 
+ *
  * @param string $string
  * @return string
  */
@@ -286,7 +286,7 @@ function utf8_strtolower($string)
 /**
  * Convert the given UTF-8 string to uppercase.
  * equivalent to mb_strtoupper($string, 'UTF-8')
- * 
+ *
  * @param string $string
  * @return string
  */

+ 1 - 1
Sources/Subs-Editor.php

@@ -2236,7 +2236,7 @@ function AutoSuggest_Search_Member()
 
 /**
  * Provides a list of possible SMF versions to use in emulation
- * 
+ *
  * @return string
  */
 function AutoSuggest_Search_SMFVersions()

+ 1 - 1
Sources/Subs-List.php

@@ -110,7 +110,7 @@ function createList($listOptions)
 	// Call the function and include which items we want and in what order.
 	$list_items = call_user_func_array($listOptions['get_items']['function'], array_merge(array($list_context['start'], $list_context['items_per_page'], $sort), empty($listOptions['get_items']['params']) ? array() : $listOptions['get_items']['params']));
 	$list_items = empty($list_items) ? array() : $list_items;
-	
+
 	// Loop through the list items to be shown and construct the data values.
 	$list_context['rows'] = array();
 	foreach ($list_items as $item_id => $list_item)

+ 1 - 1
Sources/Subs-Package.php

@@ -3191,7 +3191,7 @@ if (!function_exists('smf_crc32'))
 	/**
 	 * crc32 doesn't work as expected on 64-bit functions - make our own.
 	 * http://www.php.net/crc32#79567
-	 * 
+	 *
 	 * @param type $number
 	 * @return type
 	 */

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

@@ -1380,7 +1380,6 @@ function template_core_features()
 				<h3 class="catbg">
 					', $txt['core_settings_title'], '
 				</h3>
-				
 			</div>
 			<p class="description">', $txt['core_settings_desc'], '</p>
 			<form id="core_features" action="', $scripturl, '?action=admin;area=corefeatures" method="post" accept-charset="', $context['character_set'], '">
@@ -1575,7 +1574,7 @@ function template_php_info()
 			</h3>
 		</div>
 		<br />';
-	
+
 	// for each php info area
 	foreach ($context['pinfo'] as $area => $php_area)
 	{

+ 1 - 2
Themes/default/ManageAttachments.template.php

@@ -92,7 +92,6 @@ function template_maintenance()
 				</form>
 			</div>
 		</div>
-		
 		<div class="cat_bar">
 			<h3 class="catbg">', $txt['attachment_pruning'], '</h3>
 		</div>
@@ -128,7 +127,7 @@ function template_maintenance()
 			</div>
 		</div>
 	</div>';
-	
+
 	echo '
 			<div id="transfer" class="cat_bar">
 				<h3 class="catbg">', $txt['attachment_transfer'], '</h3>

+ 3 - 4
Themes/default/ManageBans.template.php

@@ -22,11 +22,11 @@ function template_ban_edit()
 					', $context['ban']['is_new'] ? $txt['ban_add_new'] : $txt['ban_edit'] . ' \'' . $context['ban']['name'] . '\'', '
 				</h3>
 			</div>';
-			
+
 	if ($context['ban']['is_new'])
 		echo '
 			<div class="information">', $txt['ban_add_notes'], '</div>';
-		
+
 	echo '
 			<div class="content">
 				<dl class="settings">
@@ -184,7 +184,7 @@ function template_ban_edit()
 						</tr>
 					</thead>
 					<tbody>';
-		
+
 		if (empty($context['ban_items']))
 			echo '
 						<tr class="windowbg2">
@@ -219,7 +219,6 @@ function template_ban_edit()
 		echo '
 					</tbody>
 				</table>
-				
 				<div class="flow_auto">
 					<br />
 					<input type="submit" name="remove_selection" value="', $txt['ban_remove_selected_triggers'], '" class="button_submit" />

+ 4 - 4
Themes/default/ManageBoards.template.php

@@ -99,7 +99,7 @@ function template_main()
 			</div>
 		</form>';
 	}
-	
+
 	echo '
 	</div>';
 }
@@ -122,7 +122,7 @@ function template_modify_category()
 				<div class="windowbg">
 					<div class="content">
 						<dl class="settings">';
-	
+
 	// If this isn't the only category, let the user choose where this category should be positioned down the board index.
 	if (count($context['category_order']) > 1)
 	{
@@ -130,7 +130,7 @@ function template_modify_category()
 						<dt><strong>', $txt['order'], ':</strong></dt>
 						<dd>
 							<select name="cat_order">';
-	
+
 		// Print every existing category into a select box.
 		foreach ($context['category_order'] as $order)
 			echo '
@@ -139,7 +139,7 @@ function template_modify_category()
 							</select>
 						</dd>';
 	}
-	
+
 	// Allow the user to edit the category name and/or choose whether you can collapse the category.
 	echo '
 						<dt>

+ 3 - 3
Themes/default/ManagePermissions.template.php

@@ -278,7 +278,7 @@ function template_by_board()
 			<div class="information">
 				', $txt['permissions_boards_desc'], '
 			</div>
-			
+
 			<div class="title_bar">
 				<h3 id="board_permissions" class="titlebg flow_hidden">
 					<span class="perm_name floatleft">', $txt['board_name'], '</span>
@@ -318,7 +318,7 @@ function template_by_board()
 								<a href="', $scripturl, '?action=admin;area=manageboards;sa=board;boardid=', $board['id'], ';rid=permissions;', $context['session_var'], '=', $context['session_id'], '">', str_repeat('-', $board['child_level']), ' ', $board['name'], '</a>
 							</span>
 							<span class="perm_boardprofile floatleft">';
-			
+
 			if ($context['edit_all'])
 			{
 				echo '
@@ -356,7 +356,7 @@ function template_by_board()
 	else
 		echo '
 				<a class="button_link" href="', $scripturl, '?action=admin;area=permissions;sa=board;edit;', $context['session_var'], '=', $context['session_id'], '">', $txt['permissions_board_all'], '</a>';
-	
+
 	echo '
 				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
 				<input type="hidden" name="', $context['admin-mpb_token_var'], '" value="', $context['admin-mpb_token'], '" />

+ 0 - 1
Themes/default/ManageSearch.template.php

@@ -100,7 +100,6 @@ function template_select_search_method()
 		<div class="information">
 			<div class="smalltext" style="font-weight: normal;"><a href="', $scripturl, '?action=helpadmin;help=search_why_use_index" onclick="return reqOverlayDiv(this.href);">', $txt['search_create_index_why'], '</a></div>
 		</div>
-			
 		<form id="admin_form_wrapper" action="', $scripturl, '?action=admin;area=managesearch;sa=method" method="post" accept-charset="', $context['character_set'], '">
 			<div class="cat_bar">
 				<h3 class="catbg">', $txt['search_method'], '</h3>

+ 1 - 4
Themes/default/ManageSmileys.template.php

@@ -31,7 +31,6 @@ function template_editsets()
 			</div>
 		</div>
 	</div>
-	
 	<script type="text/javascript"><!-- // --><![CDATA[
 		window.smfForum_scripturl = smf_scripturl;
 		window.smfForum_sessionid = smf_session_id;
@@ -237,7 +236,6 @@ function template_modifysmiley()
 			<input type="hidden" name="smiley" value="', $context['current_smiley']['id'], '" />
 		</form>
 	</div>
-	
 	<script type="text/javascript"><!-- // --><![CDATA[
 		function updatePreview()
 		{
@@ -339,7 +337,6 @@ function template_addsmiley()
 					</dl>
 				</div>
 			</div>
-			
 			<div class="cat_bar">
 				<h3 class="catbg">', $txt['smiley_new'], '</h3>
 			</div>
@@ -431,7 +428,7 @@ function template_setorder()
 		<input type="hidden" name="reorder" value="1" />
 	</form>';
 	}
-	
+
 	echo '
 	</div>';
 }

+ 1 - 1
Themes/default/Memberlist.template.php

@@ -191,7 +191,7 @@ function template_search()
 							<label for="fields-', $id, '"><input type="checkbox" name="fields[]" id="fields-', $id, '" value="', $id, '" ', in_array($id, $context['search_defaults']) ? 'checked="checked"' : '', ' class="input_check floatright" />', $title, '</label>
 						</dd>';
 	}
-	
+
 	echo '
 					</dl>
 					<div class="flow_auto">

+ 1 - 3
Themes/default/Packages.template.php

@@ -619,7 +619,6 @@ function template_browse()
 
 	echo '
 	</div>
-	
 	<script type="text/javascript"><!-- // --><![CDATA[
 		var oAdvancedPanelToggle = new smc_Toggle({
 			bToggleEnabled: true,
@@ -1528,7 +1527,6 @@ function template_file_permissions()
 	foreach ($context['file_tree'] as $name => $dir)
 	{
 		echo '
-			
 				<tr class="windowbg2">
 					<td width="30%"><strong>';
 
@@ -1616,7 +1614,7 @@ function template_permission_show_contents($ident, $contents, $level, $has_more
 {
 	global $settings, $txt, $scripturl, $context;
 	$js_ident = preg_replace('~[^A-Za-z0-9_\-=:]~', ':-:', $ident);
-	
+
 	// Have we actually done something?
 	$drawn_div = false;
 

+ 0 - 1
Themes/default/PersonalMessage.template.php

@@ -1876,7 +1876,6 @@ function template_add_rule()
 					<a href="#" onclick="addActionOption(); return false;" id="addonjs2" style="display: none;">(', $txt['pm_rule_add_action'], ')</a>
 				</fieldset>
 			</div>
-		
 			<div class="cat_bar">
 				<h3 class="catbg">', $txt['pm_rule_description'], '</h3>
 			</div>

+ 1 - 2
Themes/default/Profile.template.php

@@ -105,7 +105,7 @@ function template_summary()
 	if (!$context['user']['is_owner'] && $context['can_send_pm'])
 		echo '
 					<a href="', $scripturl, '?action=pm;sa=send;u=', $context['id_member'], '">', $txt['profile_sendpm_short'], '</a><br />';
-	
+
 	echo '
 					<a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />';
 
@@ -608,7 +608,6 @@ function template_editBuddies()
 
 	echo '
 				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-				
 			</div>
 		</div>
 	</form>

+ 0 - 2
Themes/default/Register.template.php

@@ -345,7 +345,6 @@ function template_registration_form()
 			<input type="hidden" name="', $context['register_token_var'], '" value="', $context['register_token'], '" />
 			<input type="hidden" name="step" value="2" />
 		</form>
-		
 		<script type="text/javascript"><!-- // --><![CDATA[
 			var regTextStrings = {
 				"username_valid": "', $txt['registration_username_available'], '",
@@ -585,7 +584,6 @@ function template_admin_register()
 						<input type="hidden" name="', $context['admin-regc_token_var'], '" value="', $context['admin-regc_token'], '" />
 					</div>
 				</div>
-				
 			</form>
 		</div>
 	</div>

+ 0 - 1
Themes/default/Search.template.php

@@ -122,7 +122,6 @@ function template_main()
 						$txt['search_between'], '</label><input type="text" name="minage" id="minage" value="', empty($context['search_params']['minage']) ? '0' : $context['search_params']['minage'], '" size="5" maxlength="4" class="input_text" />&nbsp;<label for="maxage">', $txt['search_and'], '&nbsp;</label><input type="text" name="maxage" id="maxage" value="', empty($context['search_params']['maxage']) ? '9999' : $context['search_params']['maxage'], '" size="5" maxlength="4" class="input_text" /> ', $txt['days_word'], '
 					</dd>
 				</dl>
-				
 				<script type="text/javascript"><!-- // --><![CDATA[
 					createEventListener(window);
 					window.addEventListener("load", initSearch, false);

+ 0 - 1
Themes/default/SplitTopics.template.php

@@ -154,7 +154,6 @@ function template_select()
 			</div>
 		</form>
 	</div>
-	
 	<script type="text/javascript"><!-- // --><![CDATA[
 		var start = new Array();
 		start[0] = ', $context['not_selected']['start'], ';

+ 0 - 1
Themes/default/Themes.template.php

@@ -202,7 +202,6 @@ function template_list_themes()
 		<div class="information">
 			', $txt['themeadmin_list_tip'], '
 		</div>
-		
 		<form id="admin_form_wrapper" action="', $scripturl, '?action=admin;area=theme;', $context['session_var'], '=', $context['session_id'], ';sa=list" method="post" accept-charset="', $context['character_set'], '">
 			<div class="cat_bar">
 				<h3 class="catbg">', $txt['theme_settings'], '</h3>

+ 6 - 6
other/Settings.php

@@ -2,7 +2,7 @@
 
 /**
  * The settings file contains all of the basic settings that need to be present when a database/cache is not available.
- * 
+ *
  * Simple Machines Forum (SMF)
  *
  * @package SMF
@@ -111,15 +111,15 @@ $db_prefix = 'smf_';
  */
 $db_persist = 0;
 /**
- * 
+ *
  * @var int|bool
  */
 $db_error_send = 0;
 
 ########## Cache Info ##########
 /**
- * Select a cache system. You want to leave this up to the cache area of the admin panel for 
- * proper detection of apc, eaccelerator, memcache, mmcache, output_cache, smf, or xcache 
+ * Select a cache system. You want to leave this up to the cache area of the admin panel for
+ * proper detection of apc, eaccelerator, memcache, mmcache, output_cache, smf, or xcache
  * (you can add more with a mod).
  * @var string
  */
@@ -157,13 +157,13 @@ $sourcedir = dirname(__FILE__) . '/Sources';
 ########## Error-Catching ##########
 # Note: You shouldn't touch these settings.
 if (file_exists(dirname(__FILE__) . '/db_last_error.php'))
-	include(dirname(__FILE__) . '/db_last_error.php'); 
+	include(dirname(__FILE__) . '/db_last_error.php');
 
 if (!isset($db_last_error))
 {
 	// File does not exist so lets try to create it
 	file_put_contents(dirname(__FILE__) . '/db_last_error.php', '<' . '?' . "php\n" . '$db_last_error = 0;' . "\n" . '?' . '>');
-	$db_last_error = 0; 
+	$db_last_error = 0;
 }
 
 if (file_exists(dirname(__FILE__) . '/install.php'))

+ 3 - 3
other/install.php

@@ -1962,11 +1962,11 @@ function updateSettingsFile($vars)
 	return true;
 }
 
-function updateDbLastError() 
+function updateDbLastError()
 {
-	// Write out the db_last_error file with the error timestamp 
+	// Write out the db_last_error file with the error timestamp
 	file_put_contents(dirname(__FILE__) . '/db_last_error.php', '<' . '?' . "php\n" . '$db_last_error = 0;' . "\n" . '?' . '>');
-	
+
 	return true;
 }
 

+ 1 - 1
other/install_2-1_mysql.sql

@@ -1643,7 +1643,7 @@ VALUES
 	(11, 0, 120, 1, 'd', 1, 'remove_temp_attachments'),
 	(12, 0, 180, 1, 'd', 1, 'remove_topic_redirect'),
 	(13, 0, 240, 1, 'd', 1, 'remove_old_drafts');
-	
+
 # --------------------------------------------------------
 
 #

+ 2 - 2
other/upgrade.php

@@ -69,7 +69,7 @@ $upcontext['database_step'] = 3;
 @set_time_limit(600);
 if (!ini_get('safe_mode'))
 {
-	ini_set('mysql.connect_timeout', -1); 
+	ini_set('mysql.connect_timeout', -1);
 	ini_set('default_socket_timeout', 900);
 }
 // Clean the upgrade path if this is from the client.
@@ -2171,7 +2171,7 @@ function changeSettings($config_vars)
 	fwrite($fp, rtrim($settingsArray[$i]));
 	fclose($fp);
 }
-function updateLastError() 
+function updateLastError()
 {
 	// clear out the db_last_error file
 	file_put_contents(dirname(__FILE__) . '/db_last_error.php', '<' . '?' . "php\n" . '$db_last_error = 0;' . "\n" . '?' . '>');

+ 1 - 1
other/upgrade_2-1_mysql.sql

@@ -257,7 +257,7 @@ if (@$modSettings['smfVersion'] < '2.1')
 				(id_group, id_board, permission, add_deny)
 			VALUES
 				" . implode(',', $inserts));
-				
+
 	// Next we find people who can send PM's, and assume they can save pm_drafts as well
 	$request = upgrade_query("
 		SELECT id_group, add_deny, permission

+ 2 - 2
other/upgrade_2-1_postgresql.sql

@@ -174,7 +174,7 @@ upgrade_query("
 
 	ALTER TABLE {$db_prefix}sessions
 	ALTER COLUMN session_id type char(64);");
-	
+
 upgrade_query("
 	ALTER TABLE {$db_prefix}log_online
 	ALTER COLUMN session SET DEFAULT '';
@@ -311,7 +311,7 @@ if (@$modSettings['smfVersion'] < '2.1')
 				(id_group, id_board, permission, add_deny)
 			VALUES
 				" . implode(',', $inserts));
-				
+
 	// Next we find people who can send PM's, and assume they can save pm_drafts as well
 	$request = upgrade_query("
 		SELECT id_group, add_deny, permission

+ 1 - 1
other/upgrade_2-1_sqlite.sql

@@ -294,7 +294,7 @@ if (@$modSettings['smfVersion'] < '2.1')
 				(id_group, id_board, permission, add_deny)
 			VALUES
 				" . implode(',', $inserts));
-				
+
 	// Next we find people who can send PM's, and assume they can save pm_drafts as well
 	$request = upgrade_query("
 		SELECT id_group, add_deny, permission

+ 4 - 4
subscriptions.php

@@ -190,7 +190,7 @@ elseif ($gatewayClass->isPayment() || $gatewayClass->isSubscription())
 		$real_details = @unserialize($subscription_info['pending_details']);
 		if (empty($real_details))
 			generateSubscriptionError(sprintf($txt['paid_count_not_find_outstanding_payment'], $member_id, $subscription_id));
-		
+
 		// Now we just try to find anything pending.
 		// We don't really care which it is as security happens later.
 		foreach ($real_details as $id => $detail)
@@ -200,7 +200,7 @@ elseif ($gatewayClass->isPayment() || $gatewayClass->isSubscription())
 				$subscription_info['payments_pending']--;
 			break;
 		}
-		
+
 		$subscription_info['pending_details'] = empty($real_details) ? '' : serialize($real_details);
 
 		$smcFunc['db_query']('', '
@@ -219,7 +219,7 @@ elseif ($gatewayClass->isPayment() || $gatewayClass->isSubscription())
 	if ($subscription_info['length'] == 'F')
 	{
 		$found_duration = 0;
-		
+
 		// This is a little harder, can we find the right duration?
 		foreach ($cost as $duration => $value)
 		{
@@ -239,7 +239,7 @@ elseif ($gatewayClass->isPayment() || $gatewayClass->isSubscription())
 	else
 	{
 		$actual_cost = $cost['fixed'];
-		
+
 		// It must be at least the right amount.
 		if ($total_cost != 0 && $total_cost >= $actual_cost)
 		{