-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add a new redirects method to BaseSite that returns the generic redirect tag list (previously returned by BaseSite.redirect() - add a new redirects method to APISite that returns the redirect tag list extracted from getmagicwords('redirect') - return the default redirect tag with BaseSite.redirect() instead of a list. This enables to get the default tag also from APISite if APISite.redirects is defined - move redirect_regex method from APISite to BaseSite but simplify the implementation. It is not necessary to assume that getmagicwords('redirect') does not exists; it was a guess of of the very first 2.0 implemetation and was implemented as the redirect tags were part of the family files sometime in 2008. - remove deprecated redirectRegex Bug: T347226 Change-Id: I3647cf8cb154686f075bc53a054b937675d74765
- Loading branch information
Showing
3 changed files
with
41 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters