Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/269773

Change subject: Fix case of Html class
......................................................................

Fix case of Html class

Gives fatal when using $wgAutoloadAttemptLowercase = false

Change-Id: I99a268567fd5e088864584318c13c39cd0e39fe2
---
M PageSchemas.classes.php
1 file changed, 7 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageSchemas 
refs/changes/73/269773/1

diff --git a/PageSchemas.classes.php b/PageSchemas.classes.php
index 8f86df5..19243e3 100644
--- a/PageSchemas.classes.php
+++ b/PageSchemas.classes.php
@@ -108,25 +108,25 @@
                        // that this is a header row for extension data, and 
thus should have special
                        // display.
                        // In the future, the background color may get used, 
though.
-                       $data_type = HTML::element( 'span', array( 'style' => 
"color: #993333;" ), $data_type );
+                       $data_type = Html::element( 'span', array( 'style' => 
"color: #993333;" ), $data_type );
                }
                if ( $value == '' ) {
                        $content = $data_type;
                } else {
-                       $content = "$data_type: " . HTML::element( 'span', 
array( 'class' => 'rowValue' ), $value );
+                       $content = "$data_type: " . Html::element( 'span', 
array( 'class' => 'rowValue' ), $value );
                }
                $cellAttrs = array( 'colspan' => 2, 'class' => $css_class );
-               $cell = HTML::rawElement( 'td', $cellAttrs, $content );
-               $text = HTML::rawElement( 'tr', array( 'style' => 'border: 1px 
black solid; margin: 10px;' ), $cell );
+               $cell = Html::rawElement( 'td', $cellAttrs, $content );
+               $text = Html::rawElement( 'tr', array( 'style' => 'border: 1px 
black solid; margin: 10px;' ), $cell );
                $text .= "\n";
                return $text;
        }
 
        static function attrRowHTML( $cssClass, $fieldName, $value ) {
                $fieldNameAttrs = array( 'class' => $cssClass, 'style' => 
'font-weight: normal;' );
-               $fieldNameCell = HTML::rawElement( 'td', $fieldNameAttrs, 
$fieldName );
-               $valueCell = HTML::element( 'td', array( 'class' => 'msg', 
'style' => 'font-weight: bold;' ), $value );
-               $text = HTML::rawElement( 'tr', null, $fieldNameCell . "\n" . 
$valueCell );
+               $fieldNameCell = Html::rawElement( 'td', $fieldNameAttrs, 
$fieldName );
+               $valueCell = Html::element( 'td', array( 'class' => 'msg', 
'style' => 'font-weight: bold;' ), $value );
+               $text = Html::rawElement( 'tr', null, $fieldNameCell . "\n" . 
$valueCell );
                $text .= "\n";
                return $text;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/269773
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I99a268567fd5e088864584318c13c39cd0e39fe2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageSchemas
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to