Skip to content

Commit

Permalink
Fix for #169
Browse files Browse the repository at this point in the history
  • Loading branch information
croxton committed May 8, 2021
1 parent fbf177d commit 0922b90
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
## Stash

![Release](https://img.shields.io/badge/release-3.0.9-brightgreen.svg)
![Release](https://img.shields.io/badge/release-3.1.0-brightgreen.svg)

Stash for ExpressionEngine 3 and 4.
Stash for ExpressionEngine 3.0 to 6.0+.

* Author: [Mark Croxton](http://hallmark-design.co.uk/)
* Author: [Mark Croxton](https://hallmark-design.co.uk/)
* Requires: ExpressionEngine 3.0+

### Description

Stash allows you to stash text and snippets of code for reuse throughout your templates. Variables can be set dynamically from the $_GET or $_POST superglobals and can optionally be cached in the database for persistence across pages.

Stash variables that you create are available to templates embedded below the level at which you are using the tag, or later in the parse order of the current template.

Stash is inspired by John D Wells' article on [template partials](http://johndwells.com/blog/homegrown-plugin-to-create-template-partials-for-expressionengine), and Rob Sanchez's [Dynamo](https://github.com/rsanchez/dynamo) module.

Stash allows you to stash text and snippets of code for reuse throughout your templates. Stash extends ExpressionEngine’s template parser with powerful features such as variables, lists, parse-order control, template partials, inheritance, layouts, caching and more. It will transform the way you think about and write templates.

### Documentation

https://github.com/croxton/Stash/wiki/


Copyright (c) 2021 Hallmark Design https://hallmark-design.co.uk



5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"name": "croxton/stash",
"description": "Extended templating for ExpressionEngine",
"version": "3.1.0",
"homepage": "https://github.com/croxton/Stash",
"support": {
"docs": "https://github.com/croxton/Stash/blob/master/README.md",
"issues": "https://github.com/croxton/Stash/issues"
},
"license": "GPL-3.0-or-later",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion system/user/addons/stash/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if (! defined('STASH_VER'))
{
define('STASH_NAME', 'Stash');
define('STASH_VER', '3.0.9');
define('STASH_VER', '3.1.0');
define('STASH_AUTHOR', 'Mark Croxton, Hallmark Design');
define('STASH_AUTHOR_URL', 'http://hallmark-design.co.uk');
define('STASH_DOCS', 'http://github.com/croxton/Stash/');
Expand Down
9 changes: 8 additions & 1 deletion system/user/addons/stash/upd.stash.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ public function uninstall()

if ($query->row('module_id'))
{
ee()->db->delete('module_member_groups', array('module_id' => $query->row('module_id')));
if (version_compare(APP_VER, '6.0', '>='))
{
ee()->db->delete('module_member_roles', array('module_id' => $query->row('module_id')));
}
else
{
ee()->db->delete('module_member_groups', array('module_id' => $query->row('module_id')));
}
}

ee()->db->delete('modules', array('module_name' => 'Stash'));
Expand Down

0 comments on commit 0922b90

Please sign in to comment.