do not show tools when looking at revision
authorChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 17:36:11 +0000 (19:36 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 17:36:11 +0000 (19:36 +0200)
src/phorkie/File.php

index 3c6c56d..bc0950f 100644 (file)
@@ -123,6 +123,10 @@ class File
      */
     public function getToolInfos()
     {
+        if ($this->repo->hash !== null) {
+            return array();
+        }
+
         $tm = new Tool_Manager();
         return $tm->getSuitable($this);
     }