Commit 96a56028 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX: typo

Refs: #940
parent ca00d13d
Pipeline #10205 passed with stage
in 3 minutes and 55 seconds
......@@ -14,7 +14,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
<section>
<?php
$htmlUsedSoftwares = $this->Lists->block(
$htmlUsedBy = $this->Lists->block(
$software->userssoftwares,
[
"type" => "user",
......@@ -50,7 +50,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
"emptyMsg" => __d("Softwares", "No user for {0}", $software->softwarename)
]
);
echo $htmlUsedSoftwares;
echo $htmlUsedBy;
?>
</section>
......@@ -61,7 +61,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
if ( 'Administration' === $this->request->session()->read("Auth.User.user_type")) {
$startPattern = '<div class="container_btn-participate">';
$endPattern = '</div><!-- END class "container_btn-participate" -->';
$mappingButtons = strstr($htmlUsedSoftwares, $startPattern);
$mappingButtons = strstr($htmlUsedBy, $startPattern);
$mappingButtons = strstr($mappingButtons, $endPattern, true);
$mappingButtons = "$mappingButtons $endPattern <div class=\"clearFloat\"></div>";
$mappingButtons = str_replace('Form_', 'FormMapping_', $mappingButtons);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment