add upgrade script to add new admin contentHandler
This commit is contained in:
parent
7b3855c991
commit
35d05a7f38
1 changed files with 13 additions and 0 deletions
13
share/upgrades/7.9.10-8.0.0/addNewAdminConsole.pl
Normal file
13
share/upgrades/7.9.10-8.0.0/addNewAdminConsole.pl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
use WebGUI::Upgrade::Script;
|
||||
use List::MoreUtils qw( any );
|
||||
|
||||
report "\tAdding new Admin Console...";
|
||||
|
||||
if ( ! any { $_ eq 'WebGUI::Content::Admin' } @{session->config->get('contentHandlers')} ) {
|
||||
session->config->addToArrayAfter(
|
||||
'contentHandlers', 'WebGUI::Content::Referral', 'WebGUI::Content::Admin'
|
||||
);
|
||||
}
|
||||
|
||||
done;
|
||||
Loading…
Add table
Add a link
Reference in a new issue