Project

General

Profile

« Previous | Next » 

Revision 1819

Added by Dietmar almost 12 years ago

  1. bugfix media, Undefined index /admin/media/upload.php on line 108
    - removed obselete resize_img.php

View differences:

index.php
41 41
// Include the WB functions file
42 42
require_once(WB_PATH.'/framework/functions.php');
43 43

  
44
// Target location
45
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']);
46
$directory = (isset(${$requestMethod}['dir'])) ? ${$requestMethod}['dir'] : '';
47

  
48
$directory = ($directory == '/') ?  '' : $directory;
49
$dirlink = 'index.php?dir='.$directory;
50
$rootlink = 'index.php?dir=';
51

  
44 52
// Get home folder not to show
45 53
$home_folders = get_home_folders();
46 54

  
......
90 98
$template->set_var(array(
91 99
					'HEADING_BROWSE_MEDIA' => $HEADING['BROWSE_MEDIA'],
92 100
					'HOME_DIRECTORY' => $currentHome,
101
//					'HOME_DIRECTORY' => ( $currentHome!='') ? $currentHome : $directory,
93 102
					'DISPLAY_UP_ARROW' => $display_up_arrow, // **!
94 103
					'HEADING_CREATE_FOLDER' => $HEADING['CREATE_FOLDER'],
95 104
					'HEADING_UPLOAD_FILES' => $HEADING['UPLOAD_FILES']

Also available in: Unified diff