Project

General

Profile

Bug #19061 ยป upload_config_in_linkbrowser.diff

Administrator Admin, 2008-07-03 20:38

View differences:

typo3/class.browse_links.php (working copy)
*/
function uploadForm($path) {
global $BACK_PATH;
$count=3;
// Read configuration of upload field count
$count = $GLOBALS['BE_USER']->getTSConfigVal('options.fileTree.uploadFieldsInLinkBrowser');
if ($count === '0') {
return '';
}
$count = intval($count) == 0 ? 3 : intval($count);
// Create header, showing upload path:
$header = t3lib_div::isFirstPartOfStr($path,PATH_site)?substr($path,strlen(PATH_site)):$path;
$code=$this->barheader($GLOBALS['LANG']->getLL('uploadImage').':');
......
*/
function createFolder($path) {
global $BACK_PATH;
// Don't show Folder-create form if it's denied
if ($GLOBALS['BE_USER']->getTSConfigVal('options.fileTree.denyCreateFolder') == 1) {
return '';
}
// Create header, showing upload path:
$header = t3lib_div::isFirstPartOfStr($path,PATH_site)?substr($path,strlen(PATH_site)):$path;
$code=$this->barheader($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_newfolder.php.pagetitle').':');
    (1-1/1)