Browse Source

Declare Pico::getFiles() public

This might be a useful helper method for plugins (e.g. PicoAdmin)
Daniel Rudolf 9 years ago
parent
commit
848e28b7e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -1506,7 +1506,7 @@ class Pico
      *     or Pico::SORT_NONE to leave the result unsorted
      *     or Pico::SORT_NONE to leave the result unsorted
      * @return array                 list of found files
      * @return array                 list of found files
      */
      */
-    protected function getFiles($directory, $fileExtension = '', $order = self::SORT_ASC)
+    public function getFiles($directory, $fileExtension = '', $order = self::SORT_ASC)
     {
     {
         $directory = rtrim($directory, '/');
         $directory = rtrim($directory, '/');
         $result = array();
         $result = array();