Skip to content
Snippets Groups Projects
Commit f58fefe5 authored by Bart Visscher's avatar Bart Visscher
Browse files

Check all installed apps for console commands

parent 666bbbe0
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ if (!OC::$CLI) {
$defaults = new OC_Defaults;
$application = new Application($defaults->getName(), \OC_Util::getVersionString());
require_once 'core/register_command.php';
foreach(OC_App::getEnabledApps() as $app) {
foreach(OC_App::getAllApps() as $app) {
$file = OC_App::getAppPath($app).'/appinfo/register_command.php';
if(file_exists($file)) {
require $file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment