Skip to content

Commit

Permalink
Fix: remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Mar 21, 2012
1 parent 52a8216 commit aae57a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion htdocs/admin/system/database.php
Expand Up @@ -44,7 +44,7 @@
// Database
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Database").'</td></tr>'."\n";
print '<tr '.$bc[0].'><td width="300">'.$langs->trans("Version").'</td><td>'.$db->getLabel().' '.$db->getVersion().'</td></tr>'."\n";
print '<tr '.$bc[0].'><td width="300">'.$langs->trans("Version").'</td><td>'.getStaticMember(get_class($db),'label').' '.$db->getVersion().'</td></tr>'."\n";
print '<tr '.$bc[1].'><td width="300">'.$langs->trans("DatabaseServer").'</td><td>'.$conf->db->host.'</td></tr>'."\n";
print '<tr '.$bc[0].'><td width="300">'.$langs->trans("DatabasePort").'</td><td>'.(empty($conf->db->port)?$langs->trans("Default"):$conf->db->port).'</td></tr>'."\n";
print '<tr '.$bc[1].'><td width="300">'.$langs->trans("DatabaseName").'</td><td>'.$conf->db->name.'</td></tr>'."\n";
Expand Down
2 changes: 1 addition & 1 deletion htdocs/admin/system/index.php
Expand Up @@ -86,7 +86,7 @@
// Database
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
$dblabel=$db->getLabel();
$dblabel=getStaticMember(get_class($db),'label');
$dbversion=$db->getVersion();
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" .$dblabel." ".$dbversion."</td></tr>\n";
print '</table>';
Expand Down
10 changes: 0 additions & 10 deletions htdocs/core/db/mysqli.class.php
Expand Up @@ -233,16 +233,6 @@ function connect($host, $login, $passwd, $name, $port=0)
return $this->db;
}

/**
* Return label of manager
*
* @return string Label
*/
function getLabel()
{
return $this->label;
}

/**
* Return version of database server
*
Expand Down

0 comments on commit aae57a9

Please sign in to comment.