##// END OF EJS Templates
configitems: register the 'web.motd' config
Boris Feld -
r34588:b50c0364 default
parent child Browse files
Show More
@@ -730,6 +730,9 b" coreconfigitem('web', 'errorlog',"
730 coreconfigitem('web', 'ipv6',
730 coreconfigitem('web', 'ipv6',
731 default=False,
731 default=False,
732 )
732 )
733 coreconfigitem('web', 'motd',
734 default='',
735 )
733 coreconfigitem('web', 'name',
736 coreconfigitem('web', 'name',
734 default=dynamicdefault,
737 default=dynamicdefault,
735 )
738 )
@@ -177,7 +177,7 b' class requestcontext(object):'
177 # some functions for the templater
177 # some functions for the templater
178
178
179 def motd(**map):
179 def motd(**map):
180 yield self.config('web', 'motd', '')
180 yield self.config('web', 'motd')
181
181
182 # figure out which style to use
182 # figure out which style to use
183
183
@@ -491,7 +491,7 b' class hgwebdir(object):'
491 if self.motd is not None:
491 if self.motd is not None:
492 yield self.motd
492 yield self.motd
493 else:
493 else:
494 yield config('web', 'motd', '')
494 yield config('web', 'motd')
495
495
496 def config(section, name, default=uimod._unset, untrusted=True):
496 def config(section, name, default=uimod._unset, untrusted=True):
497 return self.ui.config(section, name, default, untrusted)
497 return self.ui.config(section, name, default, untrusted)
General Comments 0
You need to be logged in to leave comments. Login now