include geshi only once
authorChristian Weiske <cweiske@cweiske.de>
Mon, 2 Apr 2012 20:49:08 +0000 (22:49 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 2 Apr 2012 20:49:08 +0000 (22:49 +0200)
src/Phorkie/File.php

index 3c6ea4b..44970ed 100644 (file)
@@ -104,7 +104,7 @@ class File
          * Yes, geshi needs to be in your include path
          * We use the mediawiki geshi extension package.
          */
-        require 'MediaWiki/geshi/geshi/geshi.php';
+        require_once 'MediaWiki/geshi/geshi/geshi.php';
         $geshi = new \GeSHi($this->getContent(), $this->getType());
         $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
         $geshi->set_header_type(GESHI_HEADER_DIV);