##// END OF EJS Templates
backward compat: use safe .get on show_id function CONFIG calls
marcink -
r3558:d91cdc11 beta
parent child Browse files
Show More
@@ -379,8 +379,8 b' def show_id(cs):'
379 :param cs: changeset instance
379 :param cs: changeset instance
380 """
380 """
381 from rhodecode import CONFIG
381 from rhodecode import CONFIG
382 def_len = safe_int(CONFIG['sha_len'])
382 def_len = safe_int(CONFIG.get('sha_len', 12))
383 show_rev = str2bool(CONFIG['sha_rev'])
383 show_rev = str2bool(CONFIG.get('sha_rev', True))
384
384
385 raw_id = cs.raw_id[:def_len]
385 raw_id = cs.raw_id[:def_len]
386 if show_rev:
386 if show_rev:
General Comments 0
You need to be logged in to leave comments. Login now