Legoktm has uploaded a new change for review.

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

Change subject: Fix display of Schema pages
......................................................................

Fix display of Schema pages

JsonContent now returns objects instead of associative arrays

Change-Id: I335ad42bb83917b3bf36ad6ee1c45f4521377c80
---
M includes/JsonSchemaContent.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EventLogging 
refs/changes/96/185096/1

diff --git a/includes/JsonSchemaContent.php b/includes/JsonSchemaContent.php
index 22b53f8..b0a9ca4 100644
--- a/includes/JsonSchemaContent.php
+++ b/includes/JsonSchemaContent.php
@@ -91,7 +91,7 @@
         */
        public function objectRow( $key, $val ) {
                $th = Xml::elementClean( 'th', array(), $key );
-               if ( is_array( $val ) ) {
+               if ( is_object( $val ) ) {
                        $td = Xml::tags( 'td', array(), $this->objectTable( 
$val ) );
                } elseif ( $key === '$ref' ) {
                        list( , $revId ) = explode( '/', $val );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I335ad42bb83917b3bf36ad6ee1c45f4521377c80
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to