Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Community
Semantic Structured Discussions
Commits
f9b3e495
Commit
f9b3e495
authored
Mar 04, 2022
by
Marijn van Wezel
❤
Browse files
Use number instead of constant, since the constant might not be available yet
parent
a8735bef
Pipeline
#2765
passed with stage
in 9 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
extension.json
View file @
f9b3e495
{
"name"
:
"Semantic Structured Discussions"
,
"type"
:
"semantic"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"author"
:
[
"Marijn van Wezel ([https://wikibase-solutions.com Wikibase Solutions])"
],
...
...
src/Hooks.php
View file @
f9b3e495
...
...
@@ -47,7 +47,7 @@ final class Hooks {
// Enable semantic annotations for pages in the "Topic" namespace
// phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix
global
$smwgNamespacesWithSemanticLinks
;
$smwgNamespacesWithSemanticLinks
[
NS_TOPIC
]
=
true
;
$smwgNamespacesWithSemanticLinks
[
2600
]
=
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