Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mjwshared
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
mjwshared
Commits
656eb4fd
Commit
656eb4fd
authored
1 year ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Release 1.2.13
parent
760a9c80
Branches
Branches containing commit
Tags
1.2.13
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/releasenotes.md
+5
-0
5 additions, 0 deletions
docs/releasenotes.md
info.xml
+3
-3
3 additions, 3 deletions
info.xml
mixin/smarty-v2@1.0.1.mixin.php
+51
-0
51 additions, 0 deletions
mixin/smarty-v2@1.0.1.mixin.php
with
59 additions
and
3 deletions
docs/releasenotes.md
+
5
−
0
View file @
656eb4fd
...
...
@@ -9,6 +9,11 @@ Releases use the following numbering system:
*
**[BC]**
: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 1.2.13 (2023-06-26)
*
smartyv2-1.0.1 does not work on 5.59 because of https://github.com/civicrm/civicrm-core/commit/7168793c03ef57c06bbfe45f5ff873ebb3657806
so we set minimum version to 5.58 which triggers civix to ship as an extension mixin.
## Release 1.2.12 (2023-06-25)
*
Add Payment_details custom field group and allow custom fields to be saved via API3
`Mjwpayment.create`
.
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
3
−
3
View file @
656eb4fd
...
...
@@ -14,11 +14,11 @@
<url
desc=
"Release Notes"
>
https://lab.civicrm.org/extensions/mjwshared/-/blob/master/docs/releasenotes.md
</url>
<url
desc=
"Licensing"
>
http://www.gnu.org/licenses/agpl-3.0.html
</url>
</urls>
<releaseDate>
2023-06-2
5
</releaseDate>
<version>
1.2.1
2
</version>
<releaseDate>
2023-06-2
6
</releaseDate>
<version>
1.2.1
3
</version>
<develStage>
stable
</develStage>
<compatibility>
<ver>
5.5
9
</ver>
<ver>
5.5
8
</ver>
</compatibility>
<classloader>
<psr0
prefix=
"CRM_"
path=
"."
/>
...
...
This diff is collapsed.
Click to expand it.
mixin/smarty-v2@1.0.1.mixin.php
0 → 100644
+
51
−
0
View file @
656eb4fd
<?php
/**
* Auto-register "templates/" folder.
*
* @mixinName smarty-v2
* @mixinVersion 1.0.1
* @since 5.59
*
* @param CRM_Extension_MixInfo $mixInfo
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
* @param \CRM_Extension_BootCache $bootCache
* On newer deployments, this will be an instance of MixInfo. On older deployments, Civix may polyfill with a work-a-like.
*/
return
function
(
$mixInfo
,
$bootCache
)
{
$dir
=
$mixInfo
->
getPath
(
'templates'
);
if
(
!
file_exists
(
$dir
))
{
return
;
}
$register
=
function
()
use
(
$dir
)
{
// This implementation has a theoretical edge-case bug on older versions of CiviCRM where a template could
// be registered more than once.
CRM_Core_Smarty
::
singleton
()
->
addTemplateDir
(
$dir
);
};
// Let's figure out what environment we're in -- so that we know the best way to call $register().
if
(
!
empty
(
$GLOBALS
[
'_CIVIX_MIXIN_POLYFILL'
]))
{
// Polyfill Loader (v<=5.45): We're already in the middle of firing `hook_config`.
if
(
$mixInfo
->
isActive
())
{
$register
();
}
return
;
}
if
(
CRM_Extension_System
::
singleton
()
->
getManager
()
->
extensionIsBeingInstalledOrEnabled
(
$mixInfo
->
longName
))
{
// New Install, Standard Loader: The extension has just been enabled, and we're now setting it up.
// System has already booted. New templates may be needed for upcoming installation steps.
$register
();
return
;
}
// Typical Pageview, Standard Loader: Defer the actual registration for a moment -- to ensure that Smarty is online.
\Civi
::
dispatcher
()
->
addListener
(
'hook_civicrm_config'
,
function
()
use
(
$mixInfo
,
$register
)
{
if
(
$mixInfo
->
isActive
())
{
$register
();
}
});
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment