Minor correction

skala
Julio Montoya 13 years ago
parent 4ab90e4333
commit bd858fe0e5
  1. 6
      main/inc/lib/svg-edit/extensions/filesave.php

@ -62,7 +62,7 @@ if(!isset($_SESSION['draw_dir']) && !isset($_SESSION['whereami'])) {
} }
$current_session_id = api_get_session_id(); $current_session_id = api_get_session_id();
$groupId=$_SESSION['_gid']; $groupId = api_get_group_id();
$relativeUrlPath=$_SESSION['draw_dir']; $relativeUrlPath=$_SESSION['draw_dir'];
$currentTool=$_SESSION['whereami']; $currentTool=$_SESSION['whereami'];
$dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document'; $dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document';
@ -142,8 +142,8 @@ unset($_SESSION['draw_file']);
unset($_SESSION['whereami']); unset($_SESSION['whereami']);
echo '<script language="javascript" type="text/javascript">'; echo '<script language="javascript" type="text/javascript">';
if($suffix!= 'png'){ if ($suffix!= 'png'){
if ($relativeUrlPath==''){$relativeUrlPath='/';}; if ($relativeUrlPath==''){$relativeUrlPath='/';};
$interbreadcrumb=api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq().'&curdirpath='. urlencode($relativeUrlPath); $interbreadcrumb=api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq().'&curdirpath='. urlencode($relativeUrlPath);
echo 'alert("'.get_lang('FileSavedAs').': '.$title.'");'; echo 'alert("'.get_lang('FileSavedAs').': '.$title.'");';
echo 'window.top.location.href="'.$interbreadcrumb.'";';//return to current document list echo 'window.top.location.href="'.$interbreadcrumb.'";';//return to current document list

Loading…
Cancel
Save