Skip to content

Commit

Permalink
any fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robodal authored and bezumkin committed Feb 2, 2018
1 parent abb816f commit f6642a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -6,7 +6,7 @@

* You need to rename it to `anyOtherName` your package, so enter into SSH console and run
```
php ~/www/Extras/modExtra/rename.php anyOtherName
php ~/www/Extras/modExtra/rename_it.php anyOtherName
```
*path on your site may differs*

Expand All @@ -31,4 +31,4 @@ If you want to download built package - just add `?download=1` to the address.

## Example deploy settings

[![](https://file.modx.pro/files/3/a/b/3ab2753b9e8b6c09a4ca0da819db37b6s.jpg)](https://file.modx.pro/files/3/a/b/3ab2753b9e8b6c09a4ca0da819db37b6.png) [![](https://file.modx.pro/files/c/1/a/c1afbb8988ab358a0b400cdcdb0391d4s.jpg)](https://file.modx.pro/files/c/1/a/c1afbb8988ab358a0b400cdcdb0391d4.png)
[![](https://file.modx.pro/files/3/a/b/3ab2753b9e8b6c09a4ca0da819db37b6s.jpg)](https://file.modx.pro/files/3/a/b/3ab2753b9e8b6c09a4ca0da819db37b6.png) [![](https://file.modx.pro/files/c/1/a/c1afbb8988ab358a0b400cdcdb0391d4s.jpg)](https://file.modx.pro/files/c/1/a/c1afbb8988ab358a0b400cdcdb0391d4.png)
6 changes: 5 additions & 1 deletion _build/config.inc.php
@@ -1,7 +1,11 @@
<?php

if (!defined('MODX_CORE_PATH')) {
define('MODX_CORE_PATH', dirname(dirname(dirname(dirname(__FILE__)))) . '/core/');
$path = dirname(__FILE__);
while (!file_exists($path . '/core/config/config.inc.php') && (strlen($path) > 1)) {
$path = dirname($path);
}
define('MODX_CORE_PATH', $path . '/core/');
}

return [
Expand Down
Expand Up @@ -4,7 +4,7 @@

<object class="modExtraItem" table="modextra_items" extends="xPDOSimpleObject">
<field key="name" dbtype="varchar" precision="100" phptype="string" null="false" default=""/>
<field key="description" dbtype="text" phptype="text" null="true" default=""/>
<field key="description" dbtype="text" phptype="string" null="true" default=""/>
<field key="active" dbtype="tinyint" precision="1" phptype="boolean" null="true" default="1"/>

<index alias="name" name="name" primary="false" unique="false" type="BTREE">
Expand Down

0 comments on commit f6642a9

Please sign in to comment.