Bug #3921 fix pixlr in groups

skala
Juan Carlos Raña 14 years ago
parent 0b58e61403
commit 4fe982d219
  1. 4
      main/document/create_paint.php
  2. 1
      main/document/save_pixlr.php

@ -127,7 +127,7 @@ echo '<div class="actions">';
echo '</div>';
///pixlr
// max size 1 Mb
// max size 1 Mb ??
$title=urlencode(utf8_encode(get_lang('NewImage')));//TODO:check
//
$image=api_get_path(WEB_IMG_PATH).'canvas1024x768.png';
@ -138,7 +138,7 @@ $langpixlr = isset($pixlr_code_translation_table[$langpixlr]) ? $pixlredit_code_
$loc=$langpixlr;// deprecated ?? TODO:check pixlr read user browser
$exit_path=api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php';
$_SESSION['exit_pixlr']= Security::remove_XSS($dir);
$_SESSION['exit_pixlr']=$document_data['path'];
$referrer="Chamilo";
$target_path=api_get_path(WEB_CODE_PATH).'document/save_pixlr.php';
$target=$target_path;

@ -78,6 +78,7 @@ $title = $title.'.'.$extension;
if($currentTool=='document/createpaint'){
//check save as and prevent rewrite an older file with same name
if (0 != $groupId){
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
$group_properties = GroupManager :: get_group_properties($groupId);
$groupPath = $group_properties['directory'];
}

Loading…
Cancel
Save