Browse Source

New feature, button changed , the button goes to last page and not to home page.

Miguel C 8 years ago
parent
commit
33a9aa20b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/api.lib.php

+ 1 - 1
main/inc/lib/api.lib.php

@@ -3231,7 +3231,7 @@ function api_not_allowed($print_headers = false, $message = null)
         $msg = $message;
     } else {
         $msg = Display::return_message(
-            get_lang('NotAllowedClickBack').'<br/><br/><a href="'.$home_url.'">'.get_lang('ReturnToCourseHomepage').'</a>',
+            get_lang('NotAllowedClickBack').'<br/><br/><button onclick="goBack();">'.get_lang('GoBack').'</button><script>function goBack(){window.history.back();}</script>',
             'error',
             false
         );