http://www.atutor.ca/atutor/mantis/view.php?id=4469
authorCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 14:47:12 +0000 (14:47 -0000)
committerCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 14:47:12 +0000 (14:47 -0000)
docs/home/classes/ContentUtility.class.php

index 4b37188..bbc52f9 100644 (file)
@@ -591,7 +591,7 @@ class ContentUtility {
                }\r
                \r
                if (isset($_current_user) && $_current_user->isAuthor($_course_id)) {\r
-                       if ($content_row['content_type'] == CONTENT_TYPE_CONTENT) {\r
+                       if ($content_row['content_type'] == CONTENT_TYPE_CONTENT || $content_row['content_type'] == CONTENT_TYPE_WEBLINK) {\r
                                $tool_shortcuts[] = array(\r
                                          'title' => _AT('edit_this_page'),   \r
                                           'url' => $_base_href . 'home/editor/edit_content.php?_cid='.$content_row['content_id'],\r
@@ -606,7 +606,7 @@ class ContentUtility {
                                   'icon' => $_base_href . 'images/add_sibling_folder.gif');\r
                        }\r
 \r
-                       if ($content_row['content_type'] == CONTENT_TYPE_FOLDER) {\r
+                       if ($content_row['content_type'] == CONTENT_TYPE_FOLDER || $content_row['content_type'] == CONTENT_TYPE_WEBLINK) {\r
                                $tool_shortcuts[] = array(\r
                                  'title' => _AT('add_sub_folder'), \r
                                  'url' => $_base_href .\r