frontpage: Cleanup urls for showing description

In a module, when URL is not avialable for a shortcut, send None instead
of an implementation specific detail on how to show description.  This
allows use to change the implementation of how description is shown
without changes to modules.
This commit is contained in:
Sunil Mohan Adapa committed 2016-09-02 20:06:53 +05:30
1 parent 7d2f9549a0
commit 3fe6ea6014
8 files changed
+17 -14

No files matched your search

+2 -2
View File
@@ -91,8 +91,8 @@ def setup(helper, old_version=None):
def add_shortcut():
frontpage.add_shortcut('repro', title, '?selected=repro',
'glyphicon-phone-alt', description)
frontpage.add_shortcut('repro', title, None, 'glyphicon-phone-alt',
description)
def enable():