Kaynağa Gözat

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

Miguel C 8 yıl önce
ebeveyn
işleme
33a9aa20b3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;
         $msg = $message;
     } else {
     } else {
         $msg = Display::return_message(
         $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',
             'error',
             false
             false
         );
         );