File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ function api_get_path($path = '', $configuration = [])
917
917
// Initialization of a table that contains common-purpose paths.
918
918
$ paths [$ root_web ][REL_PATH ] = $ root_rel ;
919
919
$ paths [$ root_web ][REL_COURSE_PATH ] = $ root_rel .$ course_folder ;
920
- $ paths [$ root_web ][REL_CODE_PATH ] = $ root_rel .$ code_folder ;
920
+ $ paths [$ root_web ][REL_CODE_PATH ] = $ root_rel .preg_replace ( ' #^/# ' , '' , $ code_folder) ;
921
921
$ paths [$ root_web ][REL_DEFAULT_COURSE_DOCUMENT_PATH ] = $ paths [$ root_web ][REL_PATH ].'main/default_course_document/ ' ;
922
922
923
923
$ paths [$ root_web ][WEB_PATH ] = $ slashed_root_web ;
@@ -941,7 +941,7 @@ function api_get_path($path = '', $configuration = [])
941
941
$ paths [$ root_web ][WEB_HOME_PATH ] = $ paths [$ root_web ][WEB_PATH ].$ paths [$ root_web ][REL_HOME_PATH ];
942
942
943
943
$ paths [$ root_web ][SYS_PATH ] = $ root_sys ;
944
- $ paths [$ root_web ][SYS_CODE_PATH ] = $ root_sys .$ code_folder ;
944
+ $ paths [$ root_web ][SYS_CODE_PATH ] = $ root_sys .preg_replace ( ' #^/# ' , '' , $ code_folder) ;
945
945
$ paths [$ root_web ][SYS_TEST_PATH ] = $ paths [$ root_web ][SYS_PATH ].$ paths [$ root_web ][SYS_TEST_PATH ];
946
946
$ paths [$ root_web ][SYS_TEMPLATE_PATH ] = $ paths [$ root_web ][SYS_CODE_PATH ].$ paths [$ root_web ][SYS_TEMPLATE_PATH ];
947
947
$ paths [$ root_web ][SYS_PUBLIC_PATH ] = $ paths [$ root_web ][SYS_PATH ].$ paths [$ root_web ][SYS_PUBLIC_PATH ];
You can’t perform that action at this time.
0 commit comments