Browse Source

Re-add deprecated Pico::getBaseThemeUrl() to maintain BC

Daniel Rudolf 6 năm trước cách đây
mục cha
commit
6476d6507d
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      lib/Pico.php

+ 12 - 0
lib/Pico.php

@@ -2240,6 +2240,18 @@ class Pico
         return substr($path, $contentDirLength, -$contentExtLength) ?: null;
     }
 
+    /**
+     * Returns the URL of the themes folder of this Pico instance
+     *
+     * @deprecated 3.0.0
+     *
+     * @return string
+     */
+    public function getBaseThemeUrl()
+    {
+        return $this->getConfig('themes_url');
+    }
+
     /**
      * Returns the URL of a given absolute path within this Pico instance
      *