Bartosz Dziewoński has uploaded a new change for review. https://gerrit.wikimedia.org/r/227157
Change subject: HTMLTitleTextField: Support 'relative' config option ...................................................................... HTMLTitleTextField: Support 'relative' config option Uses: * SpecialExport: I2b3524e61efc618aa2b7484134bba562d5f9011c * SpecialRandomInCategory: I4c0b11e2ae0cfa906bbde77fc89901cf88a9a5bd Change-Id: Ia7c773fee34fd8809c8683c62d700f5373ceb45c --- M includes/htmlform/HTMLTitleTextField.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/57/227157/1 diff --git a/includes/htmlform/HTMLTitleTextField.php b/includes/htmlform/HTMLTitleTextField.php index e1bc1a0..0a67466 100644 --- a/includes/htmlform/HTMLTitleTextField.php +++ b/includes/htmlform/HTMLTitleTextField.php @@ -11,6 +11,7 @@ * * Optional parameters: * 'namespace' - Namespace the page must be in + * 'relative' - If true and 'namespace' given, strip/add the namespace from/to the title as needed * 'creatable' - Whether to validate the title is creatable (not a special page) * 'exists' - Whether to validate that the title already exists * @@ -20,6 +21,7 @@ public function __construct( $params ) { $params += array( 'namespace' => false, + 'relative' => false, 'creatable' => false, 'exists' => false, ); @@ -60,7 +62,7 @@ if ( $this->mParams['namespace'] !== false ) { $params['namespace'] = $this->mParams['namespace']; } - $params['relative'] = false; + $params['relative'] = $this->mParams['relative']; return new TitleInputWidget( $params ); } } -- To view, visit https://gerrit.wikimedia.org/r/227157 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia7c773fee34fd8809c8683c62d700f5373ceb45c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits