rfe #12127: AssetProperty macro
This commit is contained in:
parent
34eda690ee
commit
6a01296019
5 changed files with 82 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
- fixed #12121: typ-o Asset_Map.templateIdEditPoint
|
||||
- rfe #2123: Layouts related for export purposes
|
||||
- fixed #12125: Recaptcha API url
|
||||
- rfe #12127: AssetProperty macro
|
||||
|
||||
7.10.15
|
||||
- fixed #12117: Thingy - www_searchViaAjax broken
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
addAssetPropertyMacro($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -44,6 +45,17 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addAssetPropertyMacro {
|
||||
my $session = shift;
|
||||
my $c = $session->config;
|
||||
my $hash = $c->get('macros');
|
||||
unless (grep { $_ eq 'AssetProperty' } values %$hash) {
|
||||
print "\tAdding AssetProperty macro... " unless $quiet;
|
||||
$c->set('macros/AssetProperty' => 'AssetProperty');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
}
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue