load disqus only on request
[mdref/mdref] / mdref / Repo.php
index 8f4b830295a138f87d50222bc2bb27b7e6ddf59f..4b291ab6579020923cdb1e305dc66cbeb1716d5d 100644 (file)
@@ -111,6 +111,11 @@ class Repo implements \IteratorAggregate {
                }
        }
 
+       public function hasStub(&$path = null) {
+               $path = $this->getPath($this->getName() . ".stub.php");
+               return is_file($path) && is_readable($path);
+       }
+
        /**
         * Get an Entry instance
         * @param string $entry