Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Intelliants
Articles Script
Commits
9880dabe
Commit
9880dabe
authored
Dec 27, 2017
by
Dmitriy Samoshenko
Browse files
possibly fixed
#21
parent
d073f3af
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/hook.url-rewrite.php
View file @
9880dabe
...
...
@@ -24,6 +24,9 @@ $isCompactUrlMode = (bool)$iaCore->get('articles_compact_url');
$isCategory
=
true
;
$isArticle
=
false
;
$extras
=
$iaCore
->
getModules
(
$package
);
$page
=
$this
->
iaView
->
name
()
.
'/'
;
$moduleUrl
=
$iaDb
->
one
(
'url'
,
iaDb
::
convertIds
(
$package
,
'name'
),
'modules'
);
if
(
$iaCore
->
checkDomain
()
&&
$isDefaultPackage
)
{
$accessGranted
=
true
;
...
...
@@ -31,7 +34,7 @@ if ($iaCore->checkDomain() && $isDefaultPackage) {
if
(
isset
(
$extras
[
'url'
])
&&
$extras
[
'url'
]
==
$iaView
->
domainUrl
)
{
$accessGranted
=
true
;
}
}
elseif
(
$isCompactUrlMode
&&
count
(
$iaCore
->
requestPath
)
>
0
)
{
}
elseif
(
$isCompactUrlMode
&&
count
(
$iaCore
->
requestPath
)
>
0
&&
$moduleUrl
==
$page
)
{
$accessGranted
=
true
;
}
elseif
(
!
$isCompactUrlMode
&&
!
empty
(
$iaCore
->
requestPath
[
0
])
&&
'article'
==
$iaCore
->
requestPath
[
0
])
{
$accessGranted
=
true
;
...
...
Write
Preview
Supports
Markdown
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