Added PHPDoc comment to checkPermissions (UpdateManager) and added chatmessages for the Queue

This commit is contained in:
Max Klaversma
2014-01-24 19:46:22 +01:00
committed by Steffen Schröder
parent 1281ed72a6
commit 3c77d8a5a4
2 changed files with 8 additions and 0 deletions

View File

@ -374,6 +374,11 @@ class UpdateManager implements CallbackListener, CommandListener {
return true;
}
/**
* Function checks if ManiaControl has sufficient access to files to update them.
*
* @return bool
*/
private function checkPermissions() {
$writableDirectories = array('core/', 'plugins/');
$path = str_replace('core', '', realpath(dirname(__FILE__)));