mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-12 07:18:41 +00:00
phpcbf
This commit is contained in:
parent
9038ed02e8
commit
e4c1932edd
|
|
@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
|
||||||
use phpOMS\System\File\Directory;
|
use phpOMS\System\File\Directory;
|
||||||
use phpOMS\Module\InfoManager;
|
use phpOMS\Module\InfoManager;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
jsOMS.Modules.Media.prototype.bind = function (id)
|
jsOMS.Modules.Media.prototype.bind = function (id)
|
||||||
{
|
{
|
||||||
const e = typeof id === 'undefined' ? document.getElementsByTagName('form') : [document.getElementById(id)],
|
const e = typeof id === 'undefined' ? document.getElementsByTagName('form') : [document.getElementById(id)],
|
||||||
length = e.length;
|
length = e.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
|
|
|
||||||
|
|
@ -52,5 +52,4 @@ class CollectionMapper extends MediaMapper
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $primaryField = 'media_id';
|
protected static $primaryField = 'media_id';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ class Media
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $description = '';
|
protected $description = '';
|
||||||
protected $descriptionRaw = '';
|
protected $descriptionRaw = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ class UploadFile
|
||||||
}
|
}
|
||||||
|
|
||||||
$split = explode('.', $f['name']);
|
$split = explode('.', $f['name']);
|
||||||
$result[$key]['name'] = $split[0];
|
$result[$key]['name'] = $split[0];
|
||||||
$extension = count($split) > 1 ? $split[count($split) - 1] : '';
|
$extension = count($split) > 1 ? $split[count($split) - 1] : '';
|
||||||
$result[$key]['extension'] = $extension;
|
$result[$key]['extension'] = $extension;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user