diff options
| author | Christian Fowler <spider@viovio.com> | 2011-11-23 14:41:07 -0500 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2011-11-23 14:41:07 -0500 |
| commit | fe1b44b2afb1026f4ef5075db235f77150744d7d (patch) | |
| tree | 08c057dc71d0839a1a2f1024d2835b087978932b /BitThemes.php | |
| parent | 9aa976bbc242734c71466052c4b52cf98f11037b (diff) | |
| download | themes-fe1b44b2afb1026f4ef5075db235f77150744d7d.tar.gz themes-fe1b44b2afb1026f4ef5075db235f77150744d7d.tar.bz2 themes-fe1b44b2afb1026f4ef5075db235f77150744d7d.zip | |
sort getAllModules
Diffstat (limited to 'BitThemes.php')
| -rw-r--r-- | BitThemes.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BitThemes.php b/BitThemes.php index cda092c..80be82b 100644 --- a/BitThemes.php +++ b/BitThemes.php @@ -964,6 +964,7 @@ class BitThemes extends BitBase { foreach( $modules as $m ) { $this->mModules[$pDir][$pPrefix][tra( 'Custom Modules' )]['_custom:custom/'.$m["name"]] = array( 'title' => $m["name"] ); } + asort( $this->mModules[$pDir][$pPrefix][tra( 'Custom Modules' )] ); } // iterate through all packages and look for all possible modules @@ -991,6 +992,9 @@ class BitThemes extends BitBase { } } closedir ($h); + if( !empty( $this->mModules[$pDir][$pPrefix][ucfirst( $key )] ) ) { + asort( $this->mModules[$pDir][$pPrefix][ucfirst( $key )] ); + } } } // we scan temp/<pkg>/modules for module files as well for on the fly generated modules (e.g. nexus) @@ -1007,6 +1011,7 @@ class BitThemes extends BitBase { } } closedir ($h); + asort( $this->mModules[$pDir][$pPrefix][ucfirst( $key )] ); } } } |
