Преглед изворни кода

! fixed post case 1.1 leftover
! <dd used when it should have been <dt Post.template.php
! incorrect names anchor GenericControls.template.php
! minor doc updates

Spuds пре 13 година
родитељ
комит
09e65d3d9d

+ 6 - 8
Sources/PersonalMessage.php

@@ -3025,12 +3025,10 @@ function MessageSettings()
 
 /**
  * Allows the user to report a personal message to an administrator.
- * In the first instance requires that the ID of the message to report
- * is passed through $_GET.
- * It allows the user to report to either a particular administrator - or
- * the whole admin team.
- * It will forward on a copy of the original message without allowing the
- * reporter to make changes.
+ *
+ * - In the first instance requires that the ID of the message to report is passed through $_GET.
+ * - It allows the user to report to either a particular administrator - or the whole admin team.
+ * - It will forward on a copy of the original message without allowing the reporter to make changes.
  *
  * @uses report_message sub-template.
  */
@@ -3138,11 +3136,11 @@ function ReportMessage()
 			SELECT id_member, real_name, lngfile
 			FROM {db_prefix}members
 			WHERE (id_group = {int:admin_id} OR FIND_IN_SET({int:admin_id}, additional_groups) != 0)
-				' . (empty($_POST['ID_ADMIN']) ? '' : 'AND id_member = {int:specific_admin}') . '
+				' . (empty($_POST['id_admin']) ? '' : 'AND id_member = {int:specific_admin}') . '
 			ORDER BY lngfile',
 			array(
 				'admin_id' => 1,
-				'specific_admin' => isset($_POST['ID_ADMIN']) ? (int) $_POST['ID_ADMIN'] : 0,
+				'specific_admin' => isset($_POST['id_admin']) ? (int) $_POST['id_admin'] : 0,
 			)
 		);
 

+ 5 - 1
Sources/Recent.php

@@ -17,7 +17,11 @@ if (!defined('SMF'))
 	die('Hacking attempt...');
 
 /**
- * Get the latest post.
+ * Get the latest post made on the system
+ *
+ * - respects approved, recycled, and board permissions
+ * - @todo is this even used anywhere?
+ *
  * @return array
  */
 function getLastPost()

+ 1 - 1
Sources/Subscriptions-PayPal.php

@@ -85,7 +85,7 @@ class paypal_display
 			$return_data['hidden']['t3'] = $period;
 		}
 
-		// If it's repeatable do soem javascript to respect this idea.
+		// If it's repeatable do some javascript to respect this idea.
 		if (!empty($sub_data['repeatable']))
 			$return_data['javascript'] = '
 				document.write(\'<label for="do_paypal_recur"><input type="checkbox" name="do_paypal_recur" id="do_paypal_recur" checked="checked" onclick="switchPaypalRecur();" class="input_check" />' . $txt['paid_make_recurring'] . '</label><br />\');

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

@@ -322,7 +322,7 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
 			else
 				echo '
 				<div class="smalltext" style="margin: 4px 0 8px 0;">
-					<a href="', $verify_context['image_href'], ';sound" id="visual_verification_', $verify_id, '_sound" rel="nofollow">', $txt['visual_verification_sound'], '</a> / <a href="#" id="visual_verification_', $verify_id, '_refresh">', $txt['visual_verification_request_new'], '</a>', $display_type != 'quick_reply' ? '<br />' : '', '<br />
+					<a href="', $verify_context['image_href'], ';sound" id="visual_verification_', $verify_id, '_sound" rel="nofollow">', $txt['visual_verification_sound'], '</a> / <a href="#visual_verification_', $verify_id, '_refresh" id="visual_verification_', $verify_id, '_refresh">', $txt['visual_verification_request_new'], '</a>', $display_type != 'quick_reply' ? '<br />' : '', '<br />
 					', $txt['visual_verification_description'], ':', $display_type != 'quick_reply' ? '<br />' : '', '
 					<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text" />
 				</div>';

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

@@ -1273,7 +1273,7 @@ function template_report_message()
 						<strong>', $txt['pm_report_admins'], ':</strong>
 					</dt>
 					<dd>
-						<select name="ID_ADMIN">
+						<select name="id_admin">
 							<option value="0">', $txt['pm_report_all_admins'], '</option>';
 		foreach ($context['admins'] as $id => $name)
 			echo '

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

@@ -103,9 +103,9 @@ function template_main()
 							<dt>
 								<strong style="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'display: none;' : '', '" id="error_serious">', $txt['error_while_submitting'], '</strong>
 							</dt>
-							<dt class="error" id="error_list">
+							<dd class="error" id="error_list">
 								', empty($context['post_error']['messages']) ? '' : implode('<br />', $context['post_error']['messages']), '
-							</dt>
+							</dd>
 						</dl>
 					</div>';