Permalink
Browse files

bug fix in router for modules routing loading

  • Loading branch information...
1 parent 56070ea commit 3725edbbc9bc81799170021b08954c4a1a655e04 @Shogun147 committed Oct 25, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/router.js
View
@@ -18,9 +18,11 @@ Class('Katana.Core.Router', {
Router.prepare(App.Config('routing').routes);
App.on('run', function(callback) {
- App.Config().modules.forEach(function(module) {
- Router.prepare(App.Config(module +':routing').routes || {}, module);
- });
+ for (var module in App.info.katana.modules) {
+ if (App.info.katana.modules[module].enabled) {
+ Router.prepare(App.Config(module +':routing').routes || {}, module);
+ }
+ }
callback();
});

0 comments on commit 3725edb

Please sign in to comment.