mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
getFolder() can be forced to treas $id as a name
This commit is contained in:
parent
858552b743
commit
010179fc98
|
@ -149,7 +149,8 @@ function getLockedDocuments() { /* {{{ */
|
||||||
|
|
||||||
function getFolder($id) { /* {{{ */
|
function getFolder($id) { /* {{{ */
|
||||||
global $app, $dms, $userobj;
|
global $app, $dms, $userobj;
|
||||||
if(is_numeric($id))
|
$forcebyname = $app->request()->get('forcebyname');
|
||||||
|
if(is_numeric($id) && empty($forcebyname))
|
||||||
$folder = $dms->getFolder($id);
|
$folder = $dms->getFolder($id);
|
||||||
else {
|
else {
|
||||||
$parentid = $app->request()->get('parentid');
|
$parentid = $app->request()->get('parentid');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user