mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
remove redundant var
This commit is contained in:
parent
098b1f9b89
commit
3418836533
|
@ -124,7 +124,7 @@ class Node {
|
|||
if ( isset($attr) && in_array( $attr, $supportedAttributes ) ) {
|
||||
return $attr;
|
||||
}
|
||||
return self::DEFAULT_TAG_NAME;
|
||||
return (string)$xmlNode->{self::DEFAULT_TAG_NAME};
|
||||
}
|
||||
|
||||
protected function getRawInfoboxData( $key ) {
|
||||
|
|
|
@ -5,7 +5,7 @@ use Wikia\PortableInfobox\Parser\XmlParser;
|
|||
|
||||
class NodeGroup extends Node {
|
||||
const DATA_LAYOUT_ATTR_NAME = 'layout';
|
||||
const GROUP_LAYOUT_PREFIX = 'group-layout-';
|
||||
const DEFAULT_TAG_NAME = 'default';
|
||||
|
||||
private $supportedGroupLayouts = [
|
||||
'default',
|
||||
|
|
Loading…
Reference in a new issue