[svn r19397] logic changes - fixed warning and added style css - (partial FS#3909)

skala
Isaac Flores 17 years ago
parent 72ef6d7ce4
commit fbcad7a64a
  1. 15
      main/document/edit_document.php
  2. 8
      main/document/quota.php
  3. 7
      main/document/upload.php

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 19387 2009-03-27 21:09:01Z iflorespaz $
<?php // $Id: edit_document.php 19397 2009-03-27 22:02:19Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -538,13 +538,14 @@ if($is_allowedToEdit)
}
else
{
$filepath.$filename.'.'.$extension;
$file_size = filesize($filepath.$filename.'.'.$extension);
$document_id = DocumentManager::get_document_id($_course,$file);
if($document_id)
{
update_existing_document($_course, $document_id,$file_size,$read_only_flag);
if (is_file($filepath.$filename.'.'.$extension)) {
$file_size = filesize($filepath.$filename.'.'.$extension);
$document_id = DocumentManager::get_document_id($_course,$file);
if ($document_id) {
update_existing_document($_course, $document_id,$file_size,$read_only_flag);
}
}
if (empty($document_id)) //or if is folder

@ -1,4 +1,4 @@
<?php // $Id: quota.php 18552 2009-02-17 20:03:24Z cfasanando $
<?php // $Id: quota.php 19397 2009-03-27 22:02:19Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -135,9 +135,9 @@ function display_quota($course_quota, $already_consumed_space)
MAIN CODE
==============================================================================
*/
api_display_tool_title($nameTools);
echo '<div class="actions-title">';
echo $nameTools;
echo '</div>';
$course_quota = DocumentManager::get_course_quota();
$full_path = $baseWorkDir . $courseDir;

@ -1,4 +1,4 @@
<?php // $Id: upload.php 19385 2009-03-27 20:48:57Z iflorespaz $
<?php // $Id: upload.php 19397 2009-03-27 22:02:19Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -276,8 +276,9 @@ if($to_group_id !=0) //add group name after for group documents
$add_group_to_title = ' ('.$group_properties['name'].')';
}
//show the title
api_display_tool_title($nameTools.$add_group_to_title);
echo '<div class="actions-title">';
echo $nameTools.$add_group_to_title;
echo '</div>';
/*
-----------------------------------------------------------
Here we do all the work

Loading…
Cancel
Save