Yaron Koren has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/352616 )
Change subject: "property" param only shown in helper forms if SMW installed ...................................................................... "property" param only shown in helper forms if SMW installed Change-Id: I18d0a21bd6c9c94ffa83f116e15477eb2a5c95e3 --- M includes/forminputs/PF_FormInput.php 1 file changed, 7 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageForms refs/changes/16/352616/2 diff --git a/includes/forminputs/PF_FormInput.php b/includes/forminputs/PF_FormInput.php index d1da299..961a98f 100644 --- a/includes/forminputs/PF_FormInput.php +++ b/includes/forminputs/PF_FormInput.php @@ -102,11 +102,13 @@ 'type' => 'string', 'description' => wfMessage( 'pf_forminputs_class' )->text() ); - $params['property'] = array( - 'name' => 'property', - 'type' => 'string', - 'description' => wfMessage( 'pf_forminputs_property' )->text() - ); + if ( defined( 'SMW_VERSION' ) ) { + $params['property'] = array( + 'name' => 'property', + 'type' => 'string', + 'description' => wfMessage( 'pf_forminputs_property' )->text() + ); + } $params['default'] = array( 'name' => 'default', 'type' => 'string', -- To view, visit https://gerrit.wikimedia.org/r/352616 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I18d0a21bd6c9c94ffa83f116e15477eb2a5c95e3 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/PageForms Gerrit-Branch: master Gerrit-Owner: Yaron Koren <yaro...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits