Shrink logError()
Use while in db->makeArray()
Use db->makeArray() instead of loops
Use db->getColumn() instead of loops
Change db loops style from for to while
Change nicesize() to $modx->nicesize()
Use db->getColumn() instead of loops
One style for IN_MANAGER_MODE
Merge pull request #178 from Segr/develop

Still a little small change in the code