mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Add tiny improvement
This commit is contained in:
parent
e7b664dd63
commit
d12eb3f8ea
@ -39,6 +39,15 @@ abstract class Map {
|
|||||||
|
|
||||||
protected $requires_js = null;
|
protected $requires_js = null;
|
||||||
|
|
||||||
|
public static function getName($id = null) {
|
||||||
|
if (empty($id)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return db_get_value('name', 'tmap', 'id', $id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function __construct($id) {
|
public function __construct($id) {
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ $buttons['networkmap'] = array('active' => true,
|
|||||||
'</a>');
|
'</a>');
|
||||||
|
|
||||||
ui_print_page_header(
|
ui_print_page_header(
|
||||||
__('Network map'),
|
__('Network map » %s', Map::getName($id)),
|
||||||
"images/op_network.png",
|
"images/op_network.png",
|
||||||
false,
|
false,
|
||||||
"network_map",
|
"network_map",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user