Feature #2044 fix return to document list in certain types of courses

skala
Juan Carlos Raña 14 years ago
parent 2c0d939fe5
commit 1e009c5aaf
  1. 2
      main/inc/lib/svg-edit/extensions/filesave.php

@ -152,7 +152,7 @@ unset($_SESSION['whereami']);
echo '<script language="javascript" type="text/javascript">';
if($suffix!= 'png'){
if($relativeUrlPath==''){$relativeUrlPath='/';};
$interbreadcrumb=api_get_path(WEB_CODE_PATH).'document/document.php?cidReq='.$_course['path'].'&curdirpath='. urlencode($relativeUrlPath);
$interbreadcrumb=api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq().'&amp;curdirpath='. urlencode($relativeUrlPath);
echo 'alert("'.get_lang('FileSavedAs').': '.$title.'");';
echo 'window.top.location.href="'.$interbreadcrumb.'";';//return to current document list
}else{

Loading…
Cancel
Save