Skip to content

Commit

Permalink
getNameText (deprecated) to getMainText
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Jan 1, 2023
1 parent 6f3b141 commit 13892d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/ante/models/TemplateFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class TemplateFactory {
return WikiAttributionNotices.attributionNoticeTemplates[ type ].getNamespaceId() ===
nsId( 'template' ) ?
// If in the "Template" namespace, "Copied"
WikiAttributionNotices.attributionNoticeTemplates[ type ].getNameText() :
WikiAttributionNotices.attributionNoticeTemplates[ type ].getMainText() :
// If not in the "Template" namespace, "Namespace:Copied"
WikiAttributionNotices.attributionNoticeTemplates[ type ].getPrefixedText();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/root/DeputyChangesListElements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function ChangesListUser( { user }: { user: string } ) {
userPage.getPrefixedDb()
) }
title={ userPage.getPrefixedText() }
>{ userPage.getNameText() }</a> <span
>{ userPage.getMainText() }</a> <span
class="mw-usertoollinks mw-changeslist-links"
><span><a
class="mw-usertoollinks-talk"
Expand Down

0 comments on commit 13892d7

Please sign in to comment.