Update the Asset skeleton so that it doesn't try to call
the International system with procedural calls. Update International pod to remove procedural calls as well.
This commit is contained in:
parent
7563b92b3e
commit
c5bd1b9bd8
3 changed files with 10 additions and 13 deletions
|
|
@ -37,6 +37,7 @@
|
|||
Khoe)
|
||||
- fixed #8802: isImage not functioning in Folders
|
||||
- added RFE #480: Apply button for assets
|
||||
- fixed #8807: _NewAsset.skeleton out of date
|
||||
|
||||
7.6.0
|
||||
- added: users may now customize the post received page for the CS
|
||||
|
|
|
|||
|
|
@ -230,15 +230,19 @@ sub view {
|
|||
|
||||
=head2 www_edit ( )
|
||||
|
||||
Web facing method which is the default edit page
|
||||
Web facing method which is the default edit page. Unless the method needs
|
||||
special handling or formatting, it does not need to be included in
|
||||
the module.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_edit {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||
return $self->session->privilege->locked() unless $self->canEditIfLocked;
|
||||
return $self->getAdminConsole->render($self->getEditForm->print,WebGUI::International::get('edit asset',"Asset_NewAsset"));
|
||||
my $session = $self->session;
|
||||
return $session->privilege->insufficient() unless $self->canEdit;
|
||||
return $session->privilege->locked() unless $self->canEditIfLocked;
|
||||
my $i18n = WebGUI::International->new($session, 'Asset_NewAsset');
|
||||
return $self->getAdminConsole->render($self->getEditForm->print, $i18n->get('edit asset'));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -31,15 +31,7 @@ This package provides an interface to the internationalization system.
|
|||
=head1 SYNOPSIS
|
||||
|
||||
use WebGUI::International;
|
||||
$string = WebGUI::International::get($session,$internationalId,$namespace);
|
||||
$hashRef = WebGUI::International::getLanguage($session,$lang);
|
||||
$hashRef = WebGUI::International::getLanguages($session);
|
||||
$url = WebGUI::International::makeUrlCompliant($session,$url);
|
||||
|
||||
This package can also be used in object-oriented (OO) style.
|
||||
|
||||
use WebGUI::International;
|
||||
my $i = WebGUI::International->new($session,$namespace);
|
||||
my $i = WebGUI::International->new($session, $namespace);
|
||||
|
||||
$string = $i->get($internationalId);
|
||||
$string = $i->get($internationalId, $otherNamespace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue