[svn r22576] Make api_get_path(GARBAGE_PATH) return the same as SYS_ARCHIVE_PATH (/main/garbage/ directory is deprecated since 1.8.6)

skala
Yannick Warnier 16 years ago
parent 73a882ed92
commit c13f33c454
  1. 6
      main/inc/lib/main_api.lib.php

@ -461,11 +461,6 @@ function api_get_path($path_type) {
return api_get_path(WEB_CODE_PATH).'img/';
break;
case GARBAGE_PATH :
// example: /var/www/dokeos/main/garbage/
return $GLOBALS['garbageRepositorySys'];
break;
case SYS_PLUGIN_PATH :
// example: /var/www/dokeos/plugin/
return api_get_path(SYS_PATH).'plugin/';
@ -476,6 +471,7 @@ function api_get_path($path_type) {
return api_get_path(WEB_PATH).'plugin/';
break;
case GARBAGE_PATH : //now set to be same as archive
case SYS_ARCHIVE_PATH :
// example: /var/www/dokeos/archive/
return api_get_path(SYS_PATH).'archive/';

Loading…
Cancel
Save