Page MenuHomePhabricator

D13064.diff
No OneTemporary

D13064.diff

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -20,11 +20,11 @@
**BUG REPORTS**
-Please update your install to **HEAD** before filing bug reports. Follow our [bug reporting guide](https://secure.phabricator.com/book/phabcontrib/article/bug_reports/) for complete instructions.
+Please update your install to **HEAD** before filing bug reports. Follow our [bug reporting guide](https://secure.phabricator.com/diviner/book/phabcontrib/article/bug_reports/) for complete instructions.
**FEATURE REQUESTS**
-We're big fans of feature requests that state core problems, not just 'add this'. We've compiled a short guide to effective upstream requests [here](https://secure.phabricator.com/book/phabcontrib/article/feature_requests/).
+We're big fans of feature requests that state core problems, not just 'add this'. We've compiled a short guide to effective upstream requests [here](https://secure.phabricator.com/diviner/book/phabcontrib/article/feature_requests/).
**COMMUNITY CHAT**
@@ -36,7 +36,7 @@
**PULL REQUESTS**
-We do not accept pull requests through GitHub. If you would like to contribute code, please read our [Contributor's Guide](https://secure.phabricator.com/book/phabcontrib/article/contributing_code/) for more information.
+We do not accept pull requests through GitHub. If you would like to contribute code, please read our [Contributor's Guide](https://secure.phabricator.com/diviner/book/phabcontrib/article/contributing_code/) for more information.
**LICENSE**
diff --git a/src/applications/diviner/application/PhabricatorDivinerApplication.php b/src/applications/diviner/application/PhabricatorDivinerApplication.php
--- a/src/applications/diviner/application/PhabricatorDivinerApplication.php
+++ b/src/applications/diviner/application/PhabricatorDivinerApplication.php
@@ -37,14 +37,15 @@
'' => 'DivinerMainController',
'query/((?<key>[^/]+)/)?' => 'DivinerAtomListController',
'find/' => 'DivinerFindController',
- ),
- '/book/(?P<book>[^/]+)/' => 'DivinerBookController',
- '/book/'.
- '(?P<book>[^/]+)/'.
- '(?P<type>[^/]+)/'.
- '(?:(?P<context>[^/]+)/)?'.
- '(?P<name>[^/]+)/'.
- '(?:(?P<index>\d+)/)?' => 'DivinerAtomController',
+
+ 'book/(?P<book>[^/]+)/' => 'DivinerBookController',
+ 'book/'.
+ '(?P<book>[^/]+)/'.
+ '(?P<type>[^/]+)/'.
+ '(?:(?P<context>[^/]+)/)?'.
+ '(?P<name>[^/]+)/'.
+ '(?:(?P<index>\d+)/)?' => 'DivinerAtomController',
+ ),
);
}
diff --git a/src/applications/diviner/atom/DivinerAtom.php b/src/applications/diviner/atom/DivinerAtom.php
--- a/src/applications/diviner/atom/DivinerAtom.php
+++ b/src/applications/diviner/atom/DivinerAtom.php
@@ -285,6 +285,8 @@
public function getURI() {
$parts = array();
+
+ $parts[] = 'diviner';
$parts[] = phutil_escape_uri_path_component($this->getType());
if ($this->getContext()) {
$parts[] = phutil_escape_uri_path_component($this->getContext());
diff --git a/src/applications/diviner/controller/DivinerAtomController.php b/src/applications/diviner/controller/DivinerAtomController.php
--- a/src/applications/diviner/controller/DivinerAtomController.php
+++ b/src/applications/diviner/controller/DivinerAtomController.php
@@ -62,7 +62,7 @@
$crumbs->addTextCrumb(
$book->getShortTitle(),
- '/book/'.$book->getName().'/');
+ '/diviner/book/'.$book->getName().'/');
$atom_short_title = $atom->getDocblockMetaValue(
'short',
diff --git a/src/applications/diviner/controller/DivinerBookController.php b/src/applications/diviner/controller/DivinerBookController.php
--- a/src/applications/diviner/controller/DivinerBookController.php
+++ b/src/applications/diviner/controller/DivinerBookController.php
@@ -30,7 +30,7 @@
$crumbs->addTextCrumb(
$book->getShortTitle(),
- '/book/'.$book->getName().'/');
+ '/diviner/book/'.$book->getName().'/');
$header = id(new PHUIHeaderView())
->setHeader($book->getTitle())
diff --git a/src/applications/diviner/controller/DivinerMainController.php b/src/applications/diviner/controller/DivinerMainController.php
--- a/src/applications/diviner/controller/DivinerMainController.php
+++ b/src/applications/diviner/controller/DivinerMainController.php
@@ -42,7 +42,7 @@
foreach ($books as $book) {
$item = id(new DivinerBookItemView())
->setTitle($book->getTitle())
- ->setHref('/book/'.$book->getName().'/')
+ ->setHref('/diviner/book/'.$book->getName().'/')
->setSubtitle($book->getPreface());
$list[] = $item;
}

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 3:29 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288091
Default Alt Text
D13064.diff (4 KB)

Event Timeline