Add namespace Processmaker\Core
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
*/
|
||||
|
||||
/* Get the size of the terminal (only works on Linux, on Windows it's always 80) */
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
preg_match_all("/rows.([0-9]+);.columns.([0-9]+);/", strtolower(exec('stty -a |grep columns')), $output);
|
||||
if(sizeof($output) == 3 && isset($output[2]) && isset($output[2][0])) {
|
||||
define("COLUMNS", $output[2][0]);
|
||||
@@ -47,7 +50,7 @@ function get_workspaces_from_args($args, $includeAll = true) {
|
||||
$workspaces[] = new WorkspaceTools($arg);
|
||||
}
|
||||
if (empty($workspaces) && $includeAll) {
|
||||
$workspaces = PmSystem::listWorkspaces();
|
||||
$workspaces = System::listWorkspaces();
|
||||
}
|
||||
return $workspaces;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user