diff --git a/app.js b/app.js index 364e46cc88..71cf1f5a0f 100755 --- a/app.js +++ b/app.js @@ -182,10 +182,10 @@ when.all([ghost.init(), filters.loadCoreFilters(ghost), helpers.loadCoreHelpers( ghost.app().get('/page/:page/', frontend.homepage); ghost.app().listen(3333, function () { - console.log("Express server listening on port " + 3333); + // console.log("Express server listening on port " + 3333); // Let everyone know we have finished loading loading.resolve(); }); -}, errors.logAndThrowError); \ No newline at end of file +}, errors.logAndThrowError); diff --git a/content/plugins/exampleFilters.js b/content/plugins/exampleFilters.js deleted file mode 100644 index 1b8d781477..0000000000 --- a/content/plugins/exampleFilters.js +++ /dev/null @@ -1,27 +0,0 @@ -(function(){ - "use strict"; - - /** - * Because I didn't want to write over FancyFirstChar - */ - var ExampleFilter; - - var ExampleFilter = function(ghost){ - this.ghost = function() { - return ghost; - } - } - - ExampleFilter.prototype.init = function() { - - this.ghost().registerFilter('messWithAdmin', function(adminNavbar){ - console.log('adminnavbar settings run'); - // delete adminNavbar.add; - return adminNavbar; - }); - - }; - - module.exports = ExampleFilter; - -}()); \ No newline at end of file diff --git a/content/plugins/fancyFirstChar.js b/content/plugins/fancyFirstChar.js index b3652f11f8..df7aa8acb5 100644 --- a/content/plugins/fancyFirstChar.js +++ b/content/plugins/fancyFirstChar.js @@ -17,7 +17,7 @@ newContent, firstCharIndex = 0; - console.log('got content to filter', posts); + for (post in posts) { if (posts.hasOwnProperty(post)) { diff --git a/core/admin/controllers/index.js b/core/admin/controllers/index.js index 7453ea4e79..444c874392 100755 --- a/core/admin/controllers/index.js +++ b/core/admin/controllers/index.js @@ -45,10 +45,6 @@ adminNavbar = { } }; -ghost.doFilter('messWithAdmin', adminNavbar, function () { - console.log('the dofilter hook called in /core/admin/controllers/index.js'); -}); - // TODO: make this a util or helper function setSelected(list, name) { _.each(list, function (item, key) { @@ -91,7 +87,7 @@ adminControllers = { email_address: email, password: password }).then(function (user) { - console.log('user added', user); + // console.log('user added', user); res.redirect('/ghost/login/'); }, function (error) { req.flash('error', error.message); @@ -264,4 +260,4 @@ adminControllers = { } }; -module.exports = adminControllers; \ No newline at end of file +module.exports = adminControllers; diff --git a/core/ghost.js b/core/ghost.js index 6f936a479e..3d1c4f2139 100644 --- a/core/ghost.js +++ b/core/ghost.js @@ -12,7 +12,6 @@ var config = require('./../config'), Polyglot = require('node-polyglot'), models = require('./shared/models'), - ExampleFilter = require('../content/plugins/exampleFilters'), requireTree = require('./shared/require-tree'), themeDirectories = requireTree(path.resolve(__dirname + '../../content/themes')), @@ -54,7 +53,6 @@ statuses = { */ Ghost = function () { var app, - plugin, polyglot; if (!instance) { @@ -72,9 +70,6 @@ Ghost = function () { // Holds the plugin directories temporarily instance.pluginDirectories = {}; - - plugin = new ExampleFilter(instance).init(); - app = express(); polyglot = new Polyglot(); @@ -92,7 +87,6 @@ Ghost = function () { dataProvider: models, statuses: function () { return statuses; }, polyglot: function () { return polyglot; }, - plugin: function () { return plugin; }, getPaths: function () { return when.all([themeDirectories, pluginDirectories]).then(function (paths) { instance.themeDirectories = paths[0]; @@ -252,4 +246,4 @@ Ghost.prototype.initTheme = function (app) { // TODO: Expose the defaults for other people to see/manipulate as a static value? // Ghost.defaults = defaults; -module.exports = Ghost; \ No newline at end of file +module.exports = Ghost; diff --git a/core/shared/models/index.js b/core/shared/models/index.js index 544928cea7..b166ed3205 100644 --- a/core/shared/models/index.js +++ b/core/shared/models/index.js @@ -15,8 +15,6 @@ module.exports = { return migration.down().then(function () { return migration.up(); }, errors.logAndThrowError); - }, errors.logAndThrowError).then(function () { - console.log('models loaded'); }, errors.logAndThrowError); } };