[svn r9868] Fixed bug triggered with PHP5 only (using non-instanciated object in static method)

skala
Yannick Warnier 18 years ago
parent 9a98893d7e
commit 3b7c4fad35
  1. 3
      main/newscorm/learnpath.class.php

@ -2027,8 +2027,7 @@ class learnpath {
$filename = $file_info['basename'];//name including extension
$extension = $file_info['extension'];//extension only
$file_base_name = str_replace('.'.$extension,'',$filename); //filename without its extension
$this->zipname = $file_base_name; //save for later in case we don't have a title
$zipFile = new pclZip($file_path);
// Check the zip content (real size and file extension)
$zipContentArray = $zipFile->listContent();

Loading…
Cancel
Save