Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/view/PhabricatorSetupIssueView.php
| Show First 20 Lines • Show All 464 Lines • ▼ Show 20 Lines | return phutil_tag( | ||||
| $table_info, | $table_info, | ||||
| $table, | $table, | ||||
| $info, | $info, | ||||
| )); | )); | ||||
| } | } | ||||
| private function renderMySQLConfig(array $config) { | private function renderMySQLConfig(array $config) { | ||||
| $values = array(); | $values = array(); | ||||
| $issue = $this->getIssue(); | |||||
| $ref = $issue->getDatabaseRef(); | |||||
| if ($ref) { | |||||
| foreach ($config as $key) { | foreach ($config as $key) { | ||||
| $value = PhabricatorMySQLSetupCheck::loadRawConfigValue($key); | $value = $ref->loadRawMySQLConfigValue($key); | ||||
| if ($value === null) { | if ($value === null) { | ||||
| $value = phutil_tag( | $value = phutil_tag( | ||||
| 'em', | 'em', | ||||
| array(), | array(), | ||||
| pht('(Not Supported)')); | pht('(Not Supported)')); | ||||
| } | } | ||||
| $values[$key] = $value; | $values[$key] = $value; | ||||
| } | } | ||||
| } | |||||
| $table = $this->renderValueTable($values); | $table = $this->renderValueTable($values); | ||||
| $doc_href = PhabricatorEnv::getDoclink('User Guide: Amazon RDS'); | $doc_href = PhabricatorEnv::getDoclink('User Guide: Amazon RDS'); | ||||
| $doc_link = phutil_tag( | $doc_link = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => $doc_href, | 'href' => $doc_href, | ||||
| ▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines | |||||