mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 04:22:37 +00:00
XW-2444: notice fix
This commit is contained in:
parent
c5c1a2c071
commit
34bea1521f
|
@ -210,10 +210,8 @@ class PortableInfoboxParserTagController extends WikiaController {
|
||||||
$sourceParam = $colorName . '-source';
|
$sourceParam = $colorName . '-source';
|
||||||
$defaultParam = $colorName . '-default';
|
$defaultParam = $colorName . '-default';
|
||||||
|
|
||||||
$sourceParamValue = trim( $frame->getArgument( $params[ $sourceParam ] ) );
|
if ( isset( $params[ $sourceParam ] ) && !empty( $frame->getArgument( $params[ $sourceParam ] ) ) ) {
|
||||||
|
$color = trim( $frame->getArgument( $params[ $sourceParam ] ) );
|
||||||
if ( isset( $params[ $sourceParam ] ) && !empty( $sourceParamValue ) ) {
|
|
||||||
$color = $sourceParamValue;
|
|
||||||
} else if ( isset( $params[ $defaultParam ] ) ) {
|
} else if ( isset( $params[ $defaultParam ] ) ) {
|
||||||
$color = trim( $params[ $defaultParam ] );
|
$color = trim( $params[ $defaultParam ] );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue