r60607 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60606‎ | r60607 | r60608 >
Date:18:19, 4 January 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added isHTML() setting, so that JSON link can work in Special:Ask
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php
@@ -146,6 +146,7 @@
147147 }
148148 $link->setParameter('json','format');
149149 $result = $link->getText($outputmode,$this->mLinker);
 150+ $this->isHTML = ($outputmode == SMW_OUTPUT_HTML); // yes, our code can be viewed as HTML if requested, no more parsing needed
150151 }
151152
152153 return $result;

Status & tagging log