Skip to content

Commit

Permalink
readme and min craft check
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Crawford <[email protected]>
  • Loading branch information
engram-design committed Oct 21, 2015
1 parent 74bdc48 commit ff5e782
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 0.3.7

- Added relations support, thanks to [joshangell](https://github.com/joshangell).

#### 0.3.6

- Fix for validation when inside a Matrix field.
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ If you find this error, you will need to manually rename the provided table befo
Thanks go to [@brandonkelly](https://github.com/brandonkelly) and [@benparizek](https://github.com/benparizek) for their input, ideas and suggestions.


## Requirements

Super Table requires a minimum of Craft 2.3.2615 in order to function.


## Changelog

#### 0.3.7
#### 0.3.8

- Added relations support, thanks to [joshangell](https://github.com/joshangell).
- Ensure Craft 2.3.2615 is minimum required version.


[View Full Changelog](https://github.com/engram-design/SuperTable/blob/master/CHANGELOG.md)
18 changes: 17 additions & 1 deletion supertable/SuperTablePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getName()

public function getVersion()
{
return '0.3.7';
return '0.3.8';
}

public function getDeveloper()
Expand All @@ -27,6 +27,22 @@ public function getDeveloperUrl()
return 'http://sgroup.com.au';
}

public function onAfterInstall()
{
$minBuild = '2615';

if (craft()->getBuild() < $minBuild) {
craft()->plugins->disablePlugin($this->getClassHandle());

craft()->plugins->uninstallPlugin($this->getClassHandle());

craft()->userSession->setError(Craft::t('{plugin} only works on Craft build {build} or higher', array(
'plugin' => $this->getName(),
'build' => $minBuild,
)));
}
}


/* --------------------------------------------------------------
* HOOKS
Expand Down

0 comments on commit ff5e782

Please sign in to comment.