Procházet zdrojové kódy

Update error message to no longer available
! One less @todo for mankind

Signed-off-by: Spuds <[email protected]>

Spuds před 12 roky
rodič
revize
de77917e1f
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 2
      Sources/Post.php
  2. 1 0
      Themes/default/languages/Errors.english.php

+ 1 - 2
Sources/Post.php

@@ -628,9 +628,8 @@ function Post($post_errors = array())
 			)
 		);
 		// The message they were trying to edit was most likely deleted.
-		//@todo Change this error message?
 		if ($smcFunc['db_num_rows']($request) == 0)
-			fatal_lang_error('no_board', false);
+			fatal_lang_error('no_message', false);
 		$row = $smcFunc['db_fetch_assoc']($request);
 
 		$attachment_stuff = array($row);

+ 1 - 0
Themes/default/languages/Errors.english.php

@@ -37,6 +37,7 @@ $txt['feature_disabled'] = 'Sorry, this feature is disabled.';
 $txt['feature_no_exists'] = 'Sorry, this feature doesn\'t exist.';
 $txt['couldnt_connect'] = 'Could not connect to server or could not find file';
 $txt['no_board'] = 'The board you specified doesn\'t exist';
+$txt['no_message'] = 'The message is no longer available';
 $txt['cant_split'] = 'You are not allowed to split topics';
 $txt['cant_merge'] = 'You are not allowed to merge topics';
 $txt['no_topic_id'] = 'You specified an invalid topic ID.';