Fixing a few functions that broke during the refactoring
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 13 Jan 2008 18:46:16 +0000 (10:46 -0800)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 13 Jan 2008 18:46:16 +0000 (10:46 -0800)
* Functions.php:
(BSFunctions::swap_css_classes): This function wasn't marked static so it wasn't refactored, fixed both of those issues
(BSFunctions::scan_directory): Issues arose with _help_scan_directory()
(BSFunctions::_help_scan_directory): ditto

Functions.php

index 55d369c7769e1e69835a716f626a3f462c7b2bc9..89d1c22e3a27be3d0e53fb817a99f77361354752 100644 (file)
@@ -160,7 +160,7 @@ class BSFunctions
        * @param        string  First CSS class name
        * @param        string  Second CSS class name
        */
-       public function SwapCssClasses($class1 = 'alt1', $class2 = 'alt2')
+       public static function swap_css_classes($class1 = 'alt1', $class2 = 'alt2')
        {
                static $count;
                
@@ -535,7 +535,7 @@ class BSFunctions
        */
        public static function scan_directory($path, $recurse = true, $ignoreDot = true)
        {
-               return self::_helpscan_directory($path, $recurse, $ignoreDot, '');
+               return self::_help_scan_directory($path, $recurse, $ignoreDot, '');
        }
        
        // ###################################################################
@@ -566,7 +566,7 @@ class BSFunctions
                        
                        if ($file->isDir() AND $recurse)
                        {
-                               $filelist = array_merge($filelist, self::_helpscan_directory($path . $name, $recurse, $ignoreDot, $pathAdd . BSFunctions::fetch_source_path(str_replace($path, '', $file->getPathname()))));
+                               $filelist = array_merge($filelist, self::_help_scan_directory($path . $name, $recurse, $ignoreDot, $pathAdd . BSFunctions::fetch_source_path(str_replace($path, '', $file->getPathname()))));
                                continue;
                        }