Merge pull request #1255 from rotanid/bugfix

fix: case-insensitive functions calls
pull/1260/head
Andreas Ziegler 2016-06-12 05:41:05 +02:00 committed by GitHub
commit 4dd5df53c8
2 changed files with 2 additions and 2 deletions

View File

@ -1120,7 +1120,7 @@ class Attribute extends AppModel {
$rootDir = APP . "files" . DS . $eventId;
$dir = new Folder($rootDir, true);
// move the file to the correct location
$destpath = $rootDir . DS . $this->getId(); // id of the new attribute in the database
$destpath = $rootDir . DS . $this->getID(); // id of the new attribute in the database
$file = new File($destpath);
$zipfile = new File($destpath . '.zip');
$fileInZip = new File($rootDir . DS . $extraPath . $filename); // FIXME do sanitization of the filename

View File

@ -439,7 +439,7 @@ class ShadowAttribute extends AppModel {
$rootDir = APP . "files" . DS . $eventId;
$dir = new Folder($rootDir, true);
// move the file to the correct location
$destpath = $rootDir . DS . $this->getId(); // id of the new attribute in the database
$destpath = $rootDir . DS . $this->getID(); // id of the new attribute in the database
$file = new File($destpath);
$zipfile = new File($destpath . '.zip');
$fileInZip = new File($rootDir . DS . $extraPath . $filename); // FIXME do sanitization of the filename