Added to the statistics page a robots NOINDEX, NOFOLLOW, a=chris

Chris Pollett [2012-03-18 05:Mar:th]
Added to the statistics page a robots NOINDEX, NOFOLLOW, a=chris
Filename
controllers/statistics_controller.php
robots.txt
views/layouts/web_layout.php
views/statistics_view.php
diff --git a/controllers/statistics_controller.php b/controllers/statistics_controller.php
index b74e5bbd7..725dd48a6 100644
--- a/controllers/statistics_controller.php
+++ b/controllers/statistics_controller.php
@@ -130,6 +130,7 @@ class StatisticsController extends Controller implements CrawlConstants
         }
         $data['YIOOP_TOKEN'] = $this->generateCSRFToken($user);
         $data["its"] = $this->index_time_stamp;
+        $this->statisticsView->head_objects["robots"] = "NOINDEX, NOFOLLOW";
         $this->displayView($view, $data);
     }

diff --git a/robots.txt b/robots.txt
index 8d1c8b69c..e69de29bb 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1 +0,0 @@
-
diff --git a/views/layouts/web_layout.php b/views/layouts/web_layout.php
index 4e8affcda..11d97a569 100755
--- a/views/layouts/web_layout.php
+++ b/views/layouts/web_layout.php
@@ -67,7 +67,10 @@ class WebLayout extends Layout
                 isset($this->view->head_objects[$data['page']]['title']))
                 e($this->view->head_objects[$data['page']]['title']);
             else e(tl('web_layout_title')); ?></title>
-
+        <?php if(isset($this->view->head_objects['robots'])) {?>
+            <meta name="ROBOTS" content="<?php
+                e($this->view->head_objects['robots']) ?>" />
+        <?php } ?>
             <meta name="description" content="<?php
         if(isset($data['page']) &&
         isset($this->view->head_objects[$data['page']]['description']))
diff --git a/views/statistics_view.php b/views/statistics_view.php
index 784d1cacb..b460b4a81 100644
--- a/views/statistics_view.php
+++ b/views/statistics_view.php
@@ -50,6 +50,7 @@ class StatisticsView extends View
      *  @var string
      */
     var $layout = "web";
+
     /**
      * Names of element objects that the view uses to display itself
      * @var array
ViewGit