Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
9199f241
Unverified
Commit
9199f241
authored
3 months ago
by
mattwire
Committed by
GitHub
3 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #31651 from eileenmcnaughton/ext
#5581
Expose php & smarty compatibility
parents
4804970a
a9160636
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Extension/Info.php
+12
-0
12 additions, 0 deletions
CRM/Extension/Info.php
templates/CRM/Admin/Page/ExtensionDetails.tpl
+33
-9
33 additions, 9 deletions
templates/CRM/Admin/Page/ExtensionDetails.tpl
with
45 additions
and
9 deletions
CRM/Extension/Info.php
+
12
−
0
View file @
9199f241
...
...
@@ -111,6 +111,18 @@ class CRM_Extension_Info {
*/
public
$compatibility
;
/**
* @var array
* Ex: ['ver' => '8.4']
*/
public
$php_compatibility
;
/**
* @var array
* Ex: ['ver' => '5']
*/
public
$smarty_compatibility
;
/**
* @var string|null
*/
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Admin/Page/ExtensionDetails.tpl
+
33
−
9
View file @
9199f241
...
...
@@ -60,15 +60,39 @@
</tr>
{/
if
}
<tr>
<td
class=
"label"
>
{
ts
}
Compatible with
{/
ts
}
</td>
<td>
{
if
$extension.compatibility
}
{
foreach
from
=
$extension.compatibility.ver
item
=
ver
}
{
$ver
|
escape
}
{/
foreach
}
{/
if
}
</td>
</tr>
<td
class=
"label"
>
{
ts
}
Compatible with CiviCRM version
{/
ts
}
</td>
<td>
{
if
$extension.compatibility
}
{
foreach
from
=
$extension.compatibility.ver
item
=
ver
}
{
$ver
|
escape
}
{/
foreach
}
{/
if
}
</td>
</tr>
<tr>
<td
class=
"label"
>
{
ts
}
Compatible with PHP version
{/
ts
}
</td>
<td>
{
if
$extension.php_compatibility
}
{
foreach
from
=
$extension.php_compatibility.ver
item
=
ver
}
{
$ver
|
escape
}
{/
foreach
}
{
else
}
{
ts
}
Unknown
{/
ts
}
{/
if
}
</td>
</tr>
<tr>
<td
class=
"label"
>
{
ts
}
Compatible with Smarty version
{/
ts
}
</td>
<td>
{
if
$extension.smarty_compatibility
}
{
foreach
from
=
$extension.smarty_compatibility.ver
item
=
ver
}
{
$ver
|
escape
}
{/
foreach
}
{
else
}
{
ts
}
Unknown
{/
ts
}
{/
if
}
</td>
</tr>
<tr>
<td
class=
"label"
>
{
ts
}
License
{/
ts
}
</td><td>
{
$extension.license
|
escape
}
</td>
</tr>
...
...
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