Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion maintenance/GenerateReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public function execute() {
}

// enforce that the query does not contain curly braces
if ( str_contains( $query, '{' ) ) {
// (str_contains() is PHP 8+; this extension still supports 1.39/PHP 7.4)
if ( strpos( $query, '{' ) !== false ) {
$this->fatalError(
'Query cannot contain curly braces, i.e. use "[[Category:Test]] [[Property:Test]]", ' .
'not "{{#ask: [[Category:Test]] ... }}"'
Expand Down
Loading