* Moved all direct SQL statements as constants into Sql object

* Removed redundant call for HopObject.log() in Admin.update() method
This commit is contained in:
Tobi Schäfer 2010-01-19 22:01:39 +00:00
parent 499e8d97b9
commit 33ef009f20
5 changed files with 30 additions and 22 deletions

View file

@ -41,8 +41,7 @@ Comment.remove = function(options) {
}
if (options && options.mode === "user" && options.confirm === "1") {
var sql = new Sql;
sql.retrieve("select id from content where site_id = $0 and creator_id = $1 \
and prototype = 'Comment'", this.site._id, this.creator._id);
sql.retrieve(Sql.COMMENTS, this.site._id, this.creator._id);
sql.traverse(function() {
Comment.remove.call(Comment.getById(this.id));
});