diff --git a/cms/templates/widgets/sock.html b/cms/templates/widgets/sock.html
index 63fb88ec43..a34de4bfb5 100644
--- a/cms/templates/widgets/sock.html
+++ b/cms/templates/widgets/sock.html
@@ -4,7 +4,6 @@ from django.conf import settings
from django.utils.translation import ugettext as _
%>
<%namespace file="sock_links.html" import="get_sock_links" />
-<%namespace file="sock_links_extra.html" import="get_sock_links_extra" />
@@ -20,7 +19,7 @@ from django.utils.translation import ugettext as _
${_("{studio_name} Documentation").format(studio_name=settings.STUDIO_NAME)}
<%
- links = get_sock_links() + get_sock_links_extra()
+ links = get_sock_links()
%>
diff --git a/cms/templates/widgets/sock_links.html b/cms/templates/widgets/sock_links.html
index f9c1e4b433..d4d1d21d23 100644
--- a/cms/templates/widgets/sock_links.html
+++ b/cms/templates/widgets/sock_links.html
@@ -3,6 +3,7 @@
from django.conf import settings
from django.utils.translation import ugettext as _
%>
+<%namespace file="sock_links_extra.html" import="get_sock_links_extra" />
<%def name="get_sock_links()">
<%
@@ -35,6 +36,8 @@ from django.utils.translation import ugettext as _
'condition': bool(partner_email)
}
]
+ links_extra = get_sock_links_extra()
+ links += links_extra
return links
%>
%def>