diff --git a/_build/build.config.sample.php b/_build/build.config.sample.php index 62b128f..45fd972 100644 --- a/_build/build.config.sample.php +++ b/_build/build.config.sample.php @@ -5,7 +5,7 @@ * @package tvsorter * @subpackage build */ -define('MODX_BASE_PATH', dirname(dirname(dirname(dirname(__FILE__)))) . '/modx/'); +define('MODX_BASE_PATH', dirname(dirname(dirname(__FILE__))) . '/modx/'); define('MODX_CORE_PATH', MODX_BASE_PATH . 'core/'); define('MODX_MANAGER_PATH', MODX_BASE_PATH . 'manager/'); define('MODX_CONNECTORS_PATH', MODX_BASE_PATH . 'connectors/'); @@ -15,4 +15,4 @@ define('MODX_CORE_URL', MODX_BASE_URL . 'core/'); define('MODX_MANAGER_URL', MODX_BASE_URL . 'manager/'); define('MODX_CONNECTORS_URL', MODX_BASE_URL . 'connectors/'); -define('MODX_ASSETS_URL', MODX_BASE_URL . 'assets/'); \ No newline at end of file +define('MODX_ASSETS_URL', MODX_BASE_URL . 'assets/'); diff --git a/_build/build.transport.php b/_build/build.transport.php index 486a591..1650bb8 100644 --- a/_build/build.transport.php +++ b/_build/build.transport.php @@ -36,7 +36,10 @@ // Instantiate modX $modx = new modX(); $modx->initialize('mgr'); -echo '
'; // used for nice formatting of log messages
+if (!XPDO_CLI_MODE) {
+    // used for nice formatting of log messages
+    echo '
';
+}
 $modx->setLogLevel(modX::LOG_LEVEL_INFO);
 $modx->setLogTarget('ECHO');
 
@@ -96,5 +99,5 @@
 $tend = explode(" ", microtime());
 $tend = $tend[1] + $tend[0];
 $totalTime = sprintf("%2.4f s", ($tend - $tstart));
-$modx->log(modX::LOG_LEVEL_INFO, "\n
Package Built.
\nExecution time: {$totalTime}\n"); +$modx->log(modX::LOG_LEVEL_INFO, "\n\nPackage Built. \nExecution time: {$totalTime}\n"); exit (); diff --git a/_build/data/transport.menu.php b/_build/data/transport.menu.php index 211ab50..da02a18 100644 --- a/_build/data/transport.menu.php +++ b/_build/data/transport.menu.php @@ -8,9 +8,16 @@ * @package tvsorter * @subpackage build */ +$c = $modx->newQuery('modAction'); +$c->sortby('id', 'DESC'); +$c->limit(1); +/** @var modAction $last */ +$last = $modx->getObject('modAction', $c); +$id = $last->get('id') + 1; + $action = $modx->newObject('modAction'); $action->fromArray(array( - //'id' => 1, + 'id' => $id, 'namespace' => 'tvsorter', 'parent' => 0, 'controller' => 'index', diff --git a/core/components/tvsorter/docs/mit.txt b/core/components/tvsorter/docs/license.txt similarity index 100% rename from core/components/tvsorter/docs/mit.txt rename to core/components/tvsorter/docs/license.txt