Skip to content

Commit

Permalink
Merge pull request #2835 from live627/dev
Browse files Browse the repository at this point in the history
Create a return page for unknown actions (fix #2822)
  • Loading branch information
live627 committed Apr 15, 2015
2 parents ebfbde7 + f0b3a9b commit f066118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Themes/default/languages/Errors.english.php
Expand Up @@ -4,6 +4,7 @@
global $scripturl, $modSettings;

$txt['no_access'] = 'You are not allowed to access this section';
$txt['not_found'] = 'Sorry, this section isn\'t available at this time.';
$txt['wireless_error_notyet'] = 'Sorry, this section isn\'t available for wireless users at this time.';

$txt['mods_only'] = 'Only Moderators can use the direct remove function, please remove this message through the modify feature.';
Expand Down
6 changes: 2 additions & 4 deletions index.php
Expand Up @@ -378,12 +378,10 @@ function smf_main()
return $call;
}

// No fallback action huh? then go to our good old BoardIndex.
// No fallback action, huh?
else
{
require_once($sourcedir . '/BoardIndex.php');

return 'BoardIndex';
fatal_lang_error('not_found', false, array(), 404);
}
}

Expand Down

0 comments on commit f066118

Please sign in to comment.