[svn r20518] Added WEB_ARCHIVE_PATH to the list of supported paths, in an effort to remove the garbage directory from the list of Dokeos prerequisites

skala
Yannick Warnier 17 years ago
parent 9f66b42b9c
commit 8132564af2
  1. 5
      main/inc/lib/main_api.lib.php

@ -114,6 +114,7 @@ define('SYS_PLUGIN_PATH', 'SYS_PLUGIN_PATH');
define('PLUGIN_PATH', 'PLUGIN_PATH');
define('WEB_PLUGIN_PATH', 'WEB_PLUGIN_PATH');
define('SYS_ARCHIVE_PATH', 'SYS_ARCHIVE_PATH');
define('WEB_ARCHIVE_PATH', 'WEB_ARCHIVE_PATH');
define('INCLUDE_PATH', 'INCLUDE_PATH');
define('LIBRARY_PATH', 'LIBRARY_PATH');
define('CONFIGURATION_PATH', 'CONFIGURATION_PATH');
@ -409,6 +410,10 @@ function api_get_path($path_type) {
// example: /var/www/dokeos/archive/
return api_get_path(SYS_PATH).'archive/';
break;
case WEB_ARCHIVE_PATH :
// example: http://www.mydokeos.com/archive/
return api_get_path(WEB_PATH).'archive/';
break;
case INCLUDE_PATH :
// Generated by main/inc/global.inc.php
// example: /var/www/dokeos/main/inc/

Loading…
Cancel
Save