make the admin console templates have unique titles

This commit is contained in:
Colin Kuskie 2008-06-11 03:17:31 +00:00
parent fba93ebcbe
commit c341cf0b5b
2 changed files with 11 additions and 0 deletions

View file

@ -104,6 +104,7 @@
- added: A thumbnail for Photo edit screen
- added: Configure the amount of files shown per page in the Gallery
- fix: Patch for Style.pm to identify which template failed to instantiate
- fix: Admin Console templates have the same title
7.5.10
- fix: Syntax error in GetCsMail

View file

@ -78,6 +78,7 @@ addNewApprovalActivities( $session );
addUserListWobject( $session );
addInheritUrlFromParent( $session );
addDefaultFilesPerPage( $session );
fixAdminConsoleTemplateTitles( $session );
removeOldCommerceCode($session);
finish($session); # this line required
@ -1705,6 +1706,15 @@ sub addInheritUrlFromParent {
$session->db->write('alter table assetData add column inheritUrlFromParent int(11) not null default 0');
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub fixAdminConsoleTemplateTitles {
my $session = shift;
print "\tMaking unique title for admin console templates... " unless $quiet;
my $ac = WebGUI::Asset->newByDynamicClass($session, 'PBtmpl0000000000000137');
$ac->update({title => 'Admin Console Style'});
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------