Skip to content

Commit fa37939

Browse files
committed
Fix wrong spelling of 'identifier'
1 parent 88cb70e commit fa37939

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

wcfsetup/install/files/lib/system/gridView/AbstractGridView.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ public function renderQuickInteractions(DatabaseObject $row): string
396396
*
397397
* @param TDatabaseObject $row
398398
*/
399-
protected function getData(DatabaseObject $row, string $identifer): mixed
399+
protected function getData(DatabaseObject $row, string $identifier): mixed
400400
{
401-
return $row->__get($identifer);
401+
return $row->__get($identifier);
402402
}
403403

404404
/**

wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ protected function invokeNodeHandlers($classNamePattern, array $skipTags = [], ?
418418
* Returns a randomly generated tagName+identifier pair for <wcfNode-*> tags.
419419
*
420420
* @return array{0: string, 1: string}
421+
* @since 6.2
421422
*/
422-
public function getWcfNodeIdentifer(): array
423+
public function getWcfNodeIdentifier(): array
423424
{
424425
static $counter = 0;
425426
static $prefix = null;
@@ -435,4 +436,15 @@ public function getWcfNodeIdentifer(): array
435436

436437
return [$identifier, "wcfNode-{$identifier}"];
437438
}
439+
440+
/**
441+
* Returns a randomly generated tagName+identifier pair for <wcfNode-*> tags.
442+
*
443+
* @return array{0: string, 1: string}
444+
* @deprecated 6.2 Use `getWcfNodeIdentifier` instead.
445+
*/
446+
public function getWcfNodeIdentifer(): array
447+
{
448+
return $this->getWcfNodeIdentifier();
449+
}
438450
}

wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
3737
/** @var \DOMElement $element */
3838
foreach ($elements as $element) {
3939
if ($element->getAttribute('class') === 'woltlabHtml') {
40-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
40+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
4141
$htmlNodeProcessor->addNodeData($this, $nodeIdentifier, ['rawHTML' => $element->textContent]);
4242

4343
$htmlNodeProcessor->renameTag($element, $tagName);
@@ -51,7 +51,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
5151
$prefix = '';
5252
// Create a unique prefix if possible
5353
$prefix = \str_replace('.', '_', $context['objectType']) . '_' . $context['objectID'] . '_';
54-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
54+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
5555
$htmlNodeProcessor->addNodeData($this, $nodeIdentifier, [
5656
'content' => $element->textContent,
5757
'file' => $element->getAttribute('data-file'),

wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabMetacode.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
3030
$name = $element->getAttribute('data-name');
3131
$attributes = $element->getAttribute('data-attributes');
3232

33-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
33+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
3434

3535
$element = $htmlNodeProcessor->renameTag($element, $tagName);
3636

wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabQuote.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
5050
$link = WCF::getPath() . $link;
5151
}
5252

53-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
53+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
5454
$htmlNodeProcessor->addNodeData($this, $nodeIdentifier, [
5555
'author' => $element->getAttribute('data-author'),
5656
'collapse' => $collapse,

wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabSpoiler.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
2929
/** @var \DOMElement $element */
3030
foreach ($elements as $element) {
3131
if ($this->outputType === 'text/html') {
32-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
32+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
3333
$htmlNodeProcessor->addNodeData(
3434
$this,
3535
$nodeIdentifier,

wcfsetup/install/files/lib/system/html/output/node/HtmlOutputUnfurlUrlNode.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc
6161
$enableUgc = $processor->enableUgc;
6262
}
6363

64-
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifer();
64+
[$nodeIdentifier, $tagName] = $htmlNodeProcessor->getWcfNodeIdentifier();
6565
$htmlNodeProcessor->addNodeData($this, $nodeIdentifier, [
6666
'urlId' => $attribute,
6767
'enableUgc' => $enableUgc,

0 commit comments

Comments
 (0)