Skip to content

Commit

Permalink
Drop deprecated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 22, 2017
1 parent a9a32ae commit 72ac0fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions inc/line.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static function install(Migration $migration) {
global $DB;

$table = self::getTable();
if (!TableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage(sprintf(__("Installing %s"), $table));

$query = "CREATE TABLE `$table` (
Expand Down Expand Up @@ -383,4 +383,4 @@ static function uninstall() {

return true;
}
}
}
4 changes: 2 additions & 2 deletions inc/phone.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static function install(Migration $migration) {
global $DB;

$table = self::getTable();
if (!TableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage(sprintf(__("Installing %s"), $table));

$query = "CREATE TABLE `$table` (
Expand Down Expand Up @@ -315,4 +315,4 @@ static function uninstall() {

return true;
}
}
}
2 changes: 1 addition & 1 deletion inc/phone_line.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static function install(Migration $migration) {
global $DB;

$table = self::getTable();
if (!TableExists($table)) {
if (!$DB->tableExists($table)) {
$migration->displayMessage(sprintf(__("Installing %s"), $table));

$query = "CREATE TABLE `$table` (
Expand Down

0 comments on commit 72ac0fc

Please sign in to comment.