瀏覽代碼

Restoring $_configuration['url_append'] now is set in global.inc.php and does not depends in the user

Julio Montoya 12 年之前
父節點
當前提交
6a12538a5e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/inc/lib/main_api.lib.php

+ 1 - 1
main/inc/lib/main_api.lib.php

@@ -572,7 +572,7 @@ function api_get_path($path_type, $path = null) {
     }
 
     if (!$is_this_function_initialized) {
-        $root_rel       = "/".basename($root_sys);
+        $root_rel       = $_configuration['url_append'];
 
         $code_folder    = 'main/';
         //$course_folder  = isset($_configuration['course_folder']) ? $_configuration['course_folder'] : null;