File tree Expand file tree Collapse file tree 6 files changed +18
-48
lines changed Expand file tree Collapse file tree 6 files changed +18
-48
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
Original file line number Diff line number Diff line change 7
7
*/
8
8
return call_user_func ( function () {
9
9
10
- preg_match (
11
- '+^(.*?) ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(vendor|extensions) ' .
12
- preg_quote ( DIRECTORY_SEPARATOR ) . '(.*)$+ ' ,
13
- __DIR__ ,
14
- $ remoteExtPathParts
15
- );
10
+ preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
11
+ . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
16
12
17
13
$ moduleTemplate = array (
18
14
'localBasePath ' => __DIR__ ,
19
- 'remoteExtPath ' => '../ ' . $ remoteExtPathParts [2 ]
20
- . DIRECTORY_SEPARATOR . $ remoteExtPathParts [3 ],
15
+ 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ],
21
16
);
22
17
23
18
$ modules = array (
You can’t perform that action at this time.
0 commit comments