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
CSU
tweeki
Commits
99109d4b
Commit
99109d4b
authored
Feb 21, 2019
by
Tobias Haider
Browse files
fix for semantic queries in navigation
parent
fe869bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Hooks.php
View file @
99109d4b
...
...
@@ -297,7 +297,7 @@ class TweekiHooks {
if
(
!
is_numeric
(
$semanticHitNumber
)
||
$semanticHitNumber
<
1
)
{
return
array
(
array
(
'text'
=>
$semanticQuery
,
'href'
=>
'INVALID QUERY'
)
);
}
$semanticHits
=
$parser
->
recursiveTagParse
(
'{{#ask:'
.
$semanticQuery
.
'|
format=list|
link=none}}'
,
false
);
$semanticHits
=
$parser
->
recursiveTagParse
(
'{{#ask:'
.
$semanticQuery
.
'|link=none}}'
,
false
);
$semanticHits
=
explode
(
','
,
$semanticHits
);
$semanticLinks
=
array
();
foreach
(
$semanticHits
as
$semanticHit
)
{
...
...
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