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
WSSlots
Commits
c321de54
Commit
c321de54
authored
Mar 25, 2022
by
Marijn van Wezel
❤
Browse files
Make sure Title is not NULL
parent
3e9fba2b
Pipeline
#2697
passed with stages
in 29 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
extension.json
View file @
c321de54
{
"name"
:
"WSSlots"
,
"version"
:
"1.4.
1
"
,
"version"
:
"1.4.
2
"
,
"namemsg"
:
"wsslots-extensionname"
,
"url"
:
"https://wikibase-solutions.com"
,
"type"
:
"other"
,
...
...
@@ -70,4 +70,4 @@
"editslot"
:
"WSSlots
\\
ApiEditSlot"
},
"manifest_version"
:
2
}
\ No newline at end of file
}
src/ParserFirstCallInitHookHandler.php
View file @
c321de54
...
...
@@ -111,7 +111,7 @@ class ParserFirstCallInitHookHandler implements ParserFirstCallInitHook {
$title
=
\
Title
::
newFromText
(
$page_name
);
if
(
!
$title
->
exists
()
)
{
if
(
$title
===
null
||
!
$title
->
exists
()
)
{
return
false
;
}
...
...
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