1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Use LAN plugin name on update if available.

This commit is contained in:
Cameron 2017-01-05 10:07:52 -08:00
parent e4afdc5156
commit 9ebedb6f8a
2 changed files with 7 additions and 3 deletions

View File

@ -246,12 +246,16 @@ class e107Update
}
$frm = e107::getForm();
$tp = e107::getParser();
$text = "";
foreach($list as $path=>$val)
{
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
$text .= "<tr>
<td>".$val['@attributes']['name']."</td>
<td>".$name."</td>
<td>".$frm->admin_button('update['.$path.']', LAN_UPDATE, 'warning', '', 'disabled='.$this->disabled)."</td>
</tr>";
}

View File

@ -306,7 +306,7 @@ class e107plugin
$needed[$path] = $data;
}
if($curVal < $fileVal) // check pref version against file version.
if(version_compare($curVal,$fileVal,"<")) // check pref version against file version.
{
if($mode == 'boolean')