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:
parent
e4afdc5156
commit
9ebedb6f8a
@ -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>";
|
||||
}
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user