Bartosz Dziewoński has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/402894 )
Change subject: Add support for the "(page does not exist)" tooltip
......................................................................
Add support for the "(page does not exist)" tooltip
Depends on change Ia76dd6db363f6add5efb8955be9e23a1f8e8476f
in MediaWiki, which adds support for the 'exists' option.
(This change doesn't do anything on older versions.)
Also change the check from Title::isKnown() to Title::exists().
This is consistent with how we decide whether to link to action=edit
above, and the user sandbox is never "always known" anyway.
Change-Id: I4805916fb7f3b22eb5ad0e6971bccc238f17ea68
---
M SandboxLinkHooks.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SandboxLink
refs/changes/94/402894/1
diff --git a/SandboxLinkHooks.php b/SandboxLinkHooks.php
index 295c818..c1c9583 100644
--- a/SandboxLinkHooks.php
+++ b/SandboxLinkHooks.php
@@ -63,7 +63,8 @@
'id' => 'pt-sandbox',
'text' => $skin->msg( 'sandboxlink-portlet-label'
)->text(),
'href' => $href,
- 'class' => $title->isKnown() ? false : 'new',
+ 'class' => $title->exists() ? false : 'new',
+ 'exists' => $title->exists(),
'active' => $title->equals( $currentTitle ),
];
}
--
To view, visit https://gerrit.wikimedia.org/r/402894
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4805916fb7f3b22eb5ad0e6971bccc238f17ea68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SandboxLink
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits