mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Use LAN plugin name on update if available.
This commit is contained in:
@@ -246,12 +246,16 @@ class e107Update
|
|||||||
}
|
}
|
||||||
|
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$text = "";
|
$text = "";
|
||||||
foreach($list as $path=>$val)
|
foreach($list as $path=>$val)
|
||||||
{
|
{
|
||||||
|
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
|
||||||
|
|
||||||
$text .= "<tr>
|
$text .= "<tr>
|
||||||
<td>".$val['@attributes']['name']."</td>
|
<td>".$name."</td>
|
||||||
<td>".$frm->admin_button('update['.$path.']', LAN_UPDATE, 'warning', '', 'disabled='.$this->disabled)."</td>
|
<td>".$frm->admin_button('update['.$path.']', LAN_UPDATE, 'warning', '', 'disabled='.$this->disabled)."</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
}
|
}
|
||||||
|
@@ -306,7 +306,7 @@ class e107plugin
|
|||||||
$needed[$path] = $data;
|
$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')
|
if($mode == 'boolean')
|
||||||
|
Reference in New Issue
Block a user