Break AphrontDatabaseConnection dependencies on PhabricatorEnv

Summary: We pull "retries" and a doc link from PhabricatorEnv directly. Break these dependencies so the classes can move to libphutil.

Test Plan: Browsed site, triggered a schema exception and verified I still got the useful footer text.

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: aran

Maniphest Tasks: T1283

Differential Revision: https://secure.phabricator.com/D3053
This commit is contained in:
epriestley
2012-07-24 10:47:27 -07:00
parent be63cb386b
commit 5d4a6bcf95
9 changed files with 46 additions and 20 deletions

View File

@@ -52,11 +52,12 @@ final class AphrontMySQLDatabaseConnection
$user = $this->getConfiguration('user');
$host = $this->getConfiguration('host');
$database = $this->getConfiguration('database');
$pass = $this->getConfiguration('pass');
$conn = @mysql_connect(
$host,
$user,
$this->getConfiguration('pass'),
$pass,
$new_link = true,
$flags = 0);