Browse Source

Deprecated constructor fix

Robert Marshall 8 years ago
parent
commit
11451fb927
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/geshi/geshi.php

+ 1 - 1
lib/geshi/geshi.php

@@ -594,7 +594,7 @@ class GeSHi {
      *               {@link GeSHi->set_language_path()}
      *               {@link GeSHi->set_language_path()}
      * @since 1.0.0
      * @since 1.0.0
      */
      */
-    function GeSHi($source = '', $language = '', $path = '') {
+    function __construct($source = '', $language = '', $path = '') {
         if (!empty($source)) {
         if (!empty($source)) {
             $this->set_source($source);
             $this->set_source($source);
         }
         }