aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2025-01-08 20:25:31 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2025-01-08 20:25:31 +0100
commitc3a8a197c946dee521e9a7b4e296566208924bd9 (patch)
tree1919233c7825333ab9d0056ca22796b9e57079f9 /includes/parser
parent88a745dcd3bba7ea8e228b8e1fd570d18d14fb28 (diff)
downloadmediawikicore-c3a8a197c946dee521e9a7b4e296566208924bd9.tar.gz
mediawikicore-c3a8a197c946dee521e9a7b4e296566208924bd9.zip
parser: Remove variable as return value from Parser::finalizeHeadings
The concatenation to $full is unneeded since r92506 / 64a8dd2094 Change-Id: Ib441c2db3655a0774cc2406fe7ae85549f98eb79
Diffstat (limited to 'includes/parser')
-rw-r--r--includes/parser/Parser.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 75110882d6f1..cdb299f16591 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -4323,7 +4323,6 @@ class Parser {
# Ugh .. the TOC should have neat indentation levels which can be
# passed to the skin functions. These are determined here
- $full = '';
$head = [];
$level = 0;
$tocData = new TOCData();
@@ -4571,9 +4570,7 @@ class Parser {
$sections[0] .= self::TOC_PLACEHOLDER . "\n";
}
- $full .= implode( '', $sections );
-
- return $full;
+ return implode( '', $sections );
}
/**