Add next and prev link to media display 4, a=chris

Chris Pollett [2016-03-07 07:Mar:th]
Add next and prev link to media display 4, a=chris
Filename
src/controllers/components/SocialComponent.php
src/views/StaticView.php
diff --git a/src/controllers/components/SocialComponent.php b/src/controllers/components/SocialComponent.php
index 88ecd3a2f..4e439465a 100644
--- a/src/controllers/components/SocialComponent.php
+++ b/src/controllers/components/SocialComponent.php
@@ -2195,6 +2195,7 @@ class SocialComponent extends Component implements CrawlConstants
         $file_name = $name_parts['filename'];
         $data['MEDIA_NAME'] = $media_name;
         $page_string = "";
+        $data['UP_LINK'] = $folder_prefix;
         if (!empty($prev_name)) {
             $data['PREV_LINK'] = "$url_prefix&n=$prev_name";
         }
diff --git a/src/views/StaticView.php b/src/views/StaticView.php
index f61e01c0b..f81b8e6c4 100644
--- a/src/views/StaticView.php
+++ b/src/views/StaticView.php
@@ -98,7 +98,7 @@ class StaticView extends View
                     e($page);
                 } else {
                     if (!empty($data['MEDIA_NAME'])) { ?>
-                        <div class="top-margin"><b><a href="<?=$back_url
+                        <div class="top-margin"><b><a href="<?=$data['UP_LINK']
                         ?>"><?=$data['PAGE_NAME'] ?></a></b> : <?php
                         if (!empty($data['PREV_LINK'])) {
                             e("<a href='{$data['PREV_LINK']
ViewGit