     }
 
 module.directive("tgEditableWikiContent", ["$window", "$document", "$tgRepo", "$tgConfirm", "$tgLoading",
-                                           "$tgLocation", "$tgNavUrls", "$tgAnalytics", "$tgQqueue",
-                                           EditableWikiContentDirective])
+                                           "$tgAnalytics", "$tgQqueue", EditableWikiContentDirective])

## Editable Wiki Content Directive
#############################################################################

EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $location, $navUrls,
                                $analytics, $qqueue) ->

    link = ($scope, $el, $attrs, $model) ->
        isEditable = ->
            return $scope.project.my_permissions.indexOf("modify_wiki_page") != -1

                if not wiki.id?
                    $analytics.trackEvent("wikipage", "create", "create wiki page", 1)

                $model.$modelValue = wikiPage
                $scope.$broadcast("wiki:edit", wikiPage)

                $confirm.notify("success")
                switchToReadMode()

            onError = ->
                $confirm.notify("error")
