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';
|
||||
$defaultParam = $colorName . '-default';
|
||||
|
||||
$sourceParamValue = trim( $frame->getArgument( $params[ $sourceParam ] ) );
|
||||
|
||||
if ( isset( $params[ $sourceParam ] ) && !empty( $sourceParamValue ) ) {
|
||||
$color = $sourceParamValue;
|
||||
if ( isset( $params[ $sourceParam ] ) && !empty( $frame->getArgument( $params[ $sourceParam ] ) ) ) {
|
||||
$color = trim( $frame->getArgument( $params[ $sourceParam ] ) );
|
||||
} else if ( isset( $params[ $defaultParam ] ) ) {
|
||||
$color = trim( $params[ $defaultParam ] );
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue