Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
995310d6
Commit
995310d6
authored
Aug 11, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug that prevented route directory route files from loading in modules.
parent
e4bc62da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
loader.php
system/routing/loader.php
+8
-0
No files found.
system/routing/loader.php
View file @
995310d6
...
@@ -60,6 +60,14 @@ class Loader {
...
@@ -60,6 +60,14 @@ class Loader {
array_push
(
$segments
,
substr
(
$segment
,
0
,
strpos
(
$segment
,
'.'
)));
array_push
(
$segments
,
substr
(
$segment
,
0
,
strpos
(
$segment
,
'.'
)));
}
}
// Shift the module name off of the beginning of the array so we can locate the
// appropriate route file. Since the module name will not be part of the directory
// structure, we need to get rid of it.
if
(
count
(
$segments
)
>
0
and
ACTIVE_MODULE
!==
'application'
)
{
array_shift
(
$segments
);
}
// Work backwards through the URI segments until we find the deepest possible
// Work backwards through the URI segments until we find the deepest possible
// matching route directory. Once we find it, we will return those routes.
// matching route directory. Once we find it, we will return those routes.
foreach
(
array_reverse
(
$segments
,
true
)
as
$key
=>
$value
)
foreach
(
array_reverse
(
$segments
,
true
)
as
$key
=>
$value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment