Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DRY / formatting.

  • Loading branch information...
commit 6e8cf58b68725ab8c7cb8db2afb6535d5e59c6c5 1 parent 50dc054
@Mark-H authored
View
10 core/components/versionx/controllers/index.php
@@ -24,12 +24,10 @@
require_once dirname(dirname(__FILE__)).'/model/versionx.class.php';
$versionx = new VersionX($modx);
$versionx->initialize('mgr');
-$action = $modx->getObject('modAction',array(
- 'namespace' => 'versionx',
- 'controller' => 'controllers/index',
-));
+$action = $versionx->getAction();
if ($action) $action = $action->get('id');
+
$modx->regClientStartupHTMLBlock('
<script type="text/javascript">
Ext.onReady(function() {
@@ -40,7 +38,9 @@
<style type="text/css">
.ext-gecko .x-form-text, .ext-ie8 .x-form-text {padding-top: 0;}
- .vx-added .x-form-item-label { color: green; } .vx-changed .x-form-item-label { color: #dd6600; } .vx-removed .x-form-item-label { color: #ff0000; }
+ .vx-added .x-form-item-label { color: green; }
+ .vx-changed .x-form-item-label { color: #dd6600; }
+ .vx-removed .x-form-item-label { color: #ff0000; }
</style>');
$modx->regClientStartupScript($versionx->config['js_url'].'mgr/versionx.class.js');
View
2  core/components/versionx/model/versionx.class.php
@@ -36,8 +36,6 @@ class VersionX {
/**
* @param \modX $modx
* @param array $config
- * @return \VersionX
- *
*/
function __construct(modX &$modx,array $config = array()) {
$this->modx =& $modx;
Please sign in to comment.
Something went wrong with that request. Please try again.