1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 08:14:46 +02:00

uploader JS extension options; media manager minor fixes; date, file value types (form handler)

This commit is contained in:
secretr
2012-10-31 20:18:18 +00:00
parent 3b25139a18
commit c8612c6d4f
3 changed files with 32 additions and 7 deletions

View File

@@ -174,10 +174,15 @@ class media_cat_ui extends e_admin_ui
"download" => "download"
);
if($_GET['action'] == 'list')
if($this->getAction() == 'list')
{
$this->fields['media_cat_owner']['writeParms'] = $restricted;
}
if($this->getAction() == 'create')
{
$this->fields['media_cat_category']['noedit'] = true;
}
$sql = e107::getDb();
@@ -874,7 +879,7 @@ class media_admin_ui extends e_admin_ui
if($file)
{
$cat = $_GET['for'];
$cat = e107::getParser()->toDB($cat);
if(!isset($this->cats[$cat]))
{
return;
@@ -910,7 +915,7 @@ class media_admin_ui extends e_admin_ui
function uploadPage()
{
if(!ADMIN){ exit; } //TODO check for upload-access in perms.
// if 'for' has no value, files are placed in /temp and not added to the db.
$text = '<div id="uploader" rel="'.e_JS.'plupload/upload.php?for='.$this->getQuery('for').'">
<p>No HTML5 support.</p>
@@ -954,7 +959,9 @@ class media_admin_ui extends e_admin_ui
if($type == 'file')
{
$text .= $this->getUI()->getList(); //FIXME NOT WORKING!
$this->perPage = 0;
$this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->load();
$text .= $this->getUI()->getList();
}
else
{