mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-11 08:58: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\Module\InfoManager;
|
||||
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
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;
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
|
|
|
|||
|
|
@ -52,5 +52,4 @@ class CollectionMapper extends MediaMapper
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'media_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Media
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $description = '';
|
||||
protected $description = '';
|
||||
protected $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class UploadFile
|
|||
}
|
||||
|
||||
$split = explode('.', $f['name']);
|
||||
$result[$key]['name'] = $split[0];
|
||||
$result[$key]['name'] = $split[0];
|
||||
$extension = count($split) > 1 ? $split[count($split) - 1] : '';
|
||||
$result[$key]['extension'] = $extension;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,4 +34,4 @@ class BaseView extends View
|
|||
$this->media = $data[0];
|
||||
return parent::render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user