forked from friendica/friendica-addons
Fix class name collision
This commit is contained in:
parent
82ed43f507
commit
5b13274bed
1 changed files with 6 additions and 6 deletions
|
@ -60,7 +60,7 @@ function js_upload_post_init(array &$b)
|
||||||
// max file size in bytes
|
// max file size in bytes
|
||||||
$sizeLimit = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
$sizeLimit = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||||
|
|
||||||
$uploader = new qqFileUploader($allowedExtensions, $sizeLimit);
|
$uploader = new js_upload_qqFileUploader($allowedExtensions, $sizeLimit);
|
||||||
|
|
||||||
$result = $uploader->handleUpload();
|
$result = $uploader->handleUpload();
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ function js_upload_post_end(int &$b)
|
||||||
/**
|
/**
|
||||||
* Handle file uploads via XMLHttpRequest
|
* Handle file uploads via XMLHttpRequest
|
||||||
*/
|
*/
|
||||||
class qqUploadedFileXhr
|
class js_upload_qqUploadedFileXhr
|
||||||
{
|
{
|
||||||
private $pathnm = '';
|
private $pathnm = '';
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ class qqUploadedFileXhr
|
||||||
/**
|
/**
|
||||||
* Handle file uploads via regular form post (uses the $_FILES array)
|
* Handle file uploads via regular form post (uses the $_FILES array)
|
||||||
*/
|
*/
|
||||||
class qqUploadedFileForm
|
class js_upload_qqUploadedFileForm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Save the file to the specified path
|
* Save the file to the specified path
|
||||||
|
@ -183,7 +183,7 @@ class qqUploadedFileForm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class qqFileUploader
|
class js_upload_qqFileUploader
|
||||||
{
|
{
|
||||||
private $allowedExtensions;
|
private $allowedExtensions;
|
||||||
private $sizeLimit;
|
private $sizeLimit;
|
||||||
|
@ -197,9 +197,9 @@ class qqFileUploader
|
||||||
$this->sizeLimit = $sizeLimit;
|
$this->sizeLimit = $sizeLimit;
|
||||||
|
|
||||||
if (isset($_GET['qqfile'])) {
|
if (isset($_GET['qqfile'])) {
|
||||||
$this->file = new qqUploadedFileXhr();
|
$this->file = new js_upload_qqUploadedFileXhr();
|
||||||
} elseif (isset($_FILES['qqfile'])) {
|
} elseif (isset($_FILES['qqfile'])) {
|
||||||
$this->file = new qqUploadedFileForm();
|
$this->file = new js_upload_qqUploadedFileForm();
|
||||||
} else {
|
} else {
|
||||||
$this->file = false;
|
$this->file = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue