Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1198 from lzhan/readme
Browse files Browse the repository at this point in the history
fix #1017 support for README.md at mojit level
  • Loading branch information
lzhan committed Jul 22, 2013
2 parents 2c6fce4 + 8aa4ff7 commit aba26fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Expand Up @@ -14,6 +14,7 @@ Bug Fixes
---------

* PR #1196: fix runtime:server is not set by default when booting the app
* Issue #1071: Putting a README.md in the mojits/ directory causes mojito to not load

Acknowledgements
----------------
Expand Down
4 changes: 4 additions & 0 deletions lib/app/autoload/store.server.js
Expand Up @@ -1834,6 +1834,10 @@ YUI.add('mojito-resource-store', function(Y, NAME) {
res;
dir = this._libs.path.resolve(this._config.root, dir);

if (!this._libs.fs.lstatSync(dir).isDirectory()) {
return;
}

if (!(this._libs.fs.existsSync || this._libs.path.existsSync)(dir)) {
return;
}
Expand Down
Empty file.
Empty file.

0 comments on commit aba26fc

Please sign in to comment.