Skip to content

Commit 4b9c72d

Browse files
committed
Get the database from the application
1 parent 077c172 commit 4b9c72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Joomla/Tracker/Components/Tracker/Controller/AbstractHookController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function __construct(Input $input = null, AbstractApplication $app = null
116116
Log::addLogger($options);
117117

118118
// Get a database object
119-
$this->db = Factory::getDbo();
119+
$this->db = $this->getApplication()->getDatabase();
120120

121121
// Instantiate Github
122122
$this->github = new Github;

0 commit comments

Comments
 (0)