[svn r21653] minor - logic changes - cleaned code - (partial FS#4314)

skala
Isaac Flores 16 years ago
parent d1f513a99b
commit 63200dee6b
  1. 6
      main/document/upload.php

@ -1,4 +1,4 @@
<?php // $Id: upload.php 21563 2009-06-22 10:49:59Z ivantcholakov $
<?php // $Id: upload.php 21653 2009-06-27 20:12:55Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -180,7 +180,7 @@ $noPHP_SELF=true;
if(isset($_SESSION['_gid']) && $_SESSION['_gid']!='') //if the group id is set, check if the user has the right to be here
{
//needed for group related stuff
include_once(api_get_path(LIBRARY_PATH) . 'groupmanager.lib.php');
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
//get group info
$group_properties = GroupManager::get_group_properties($_SESSION['_gid']);
$noPHP_SELF=true;
@ -234,7 +234,7 @@ if($to_group_id!=0 && $path=='/')
//if we want to unzip a file, we need the library
if (isset($_POST['unzip']) && $_POST['unzip'] == 1)
{
include(api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php');
require_once api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php';
}
// variables

Loading…
Cancel
Save