Make makeUrlCompliant as deprecated, and updated POD and subroutines accordingly.
This commit is contained in:
parent
1aaac5fbfb
commit
944c76040a
5 changed files with 5 additions and 17 deletions
|
|
@ -36,8 +36,6 @@ This package provides an interface to the internationalization system.
|
|||
$string = $i->get($internationalId);
|
||||
$string = $i->get($internationalId, $otherNamespace);
|
||||
|
||||
$url = $i->makeUrlCompliant($url);
|
||||
|
||||
$hashRef = $i->getLanguage($lang);
|
||||
|
||||
$hashRef = $i->getLanguages();
|
||||
|
|
@ -218,6 +216,8 @@ sub getLanguages {
|
|||
|
||||
=head2 makeUrlCompliant ( url [ , language ] )
|
||||
|
||||
THIS METHOD IS DEPRECATED AND WILL BE REMOVED FROM WEBGUI.
|
||||
|
||||
Manipulates a URL to make sure it will work on the internet. It removes things like non-latin characters, etc.
|
||||
|
||||
=head3 url
|
||||
|
|
@ -232,11 +232,7 @@ Specify a default language. Defaults to user preference or "English".
|
|||
|
||||
sub makeUrlCompliant {
|
||||
my ($self, $url, $language) = @_;
|
||||
$language = $language || $self->{_language} || $self->session->user->profileField("language") || "English";
|
||||
my $cmd = "WebGUI::i18n::".$language;
|
||||
WebGUI::Pluggable::load($cmd);
|
||||
my $output = WebGUI::Pluggable::run($cmd, 'makeUrlCompliant', [$url]);
|
||||
return $output;
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue