From 32d2395a4549577ad63c41c91bafb7bc372a2a31 Mon Sep 17 00:00:00 2001 From: vrana Date: Mon, 9 Apr 2012 14:23:10 -0700 Subject: [PATCH] Unify links to www.phabricator.com and phabricator.com Test Plan: scripts/sql/upgrade_schema.php Verify links at /directory/2/. Reviewers: epriestley Reviewed By: epriestley CC: aran Maniphest Tasks: T1096 Differential Revision: https://secure.phabricator.com/D2172 --- resources/sql/patches/128.phabricatorcom.sql | 3 +++ scripts/install/install_rhel-derivs.sh | 2 +- scripts/install/install_ubuntu.sh | 2 +- src/docs/installation_guide.diviner | 6 +++--- src/infrastructure/env/PhabricatorEnv.php | 2 +- src/infrastructure/setup/PhabricatorSetup.php | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 resources/sql/patches/128.phabricatorcom.sql diff --git a/resources/sql/patches/128.phabricatorcom.sql b/resources/sql/patches/128.phabricatorcom.sql new file mode 100644 index 0000000000..02acb07c0a --- /dev/null +++ b/resources/sql/patches/128.phabricatorcom.sql @@ -0,0 +1,3 @@ +UPDATE phabricator_directory.directory_item SET + href = REPLACE(href, 'http://phabricator.com/', 'http://www.phabricator.com/') + WHERE href LIKE 'http://phabricator.com/%'; diff --git a/scripts/install/install_rhel-derivs.sh b/scripts/install/install_rhel-derivs.sh index 712f7a0a27..f6b6c05322 100755 --- a/scripts/install/install_rhel-derivs.sh +++ b/scripts/install/install_rhel-derivs.sh @@ -139,4 +139,4 @@ echo echo echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':"; echo -echo " http://phabricator.com/docs/phabricator/article/Configuration_Guide.html"; \ No newline at end of file +echo " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html"; \ No newline at end of file diff --git a/scripts/install/install_ubuntu.sh b/scripts/install/install_ubuntu.sh index bd6d0452e6..1b5c04a0ae 100755 --- a/scripts/install/install_ubuntu.sh +++ b/scripts/install/install_ubuntu.sh @@ -84,6 +84,6 @@ echo echo echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':"; echo -echo " http://phabricator.com/docs/phabricator/article/Configuration_Guide.html"; +echo " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html"; echo echo "You can delete any php5-* stuff that's left over in this directory if you want."; diff --git a/src/docs/installation_guide.diviner b/src/docs/installation_guide.diviner index 563af05654..ad5a178228 100644 --- a/src/docs/installation_guide.diviner +++ b/src/docs/installation_guide.diviner @@ -31,8 +31,8 @@ If you are installing on Ubuntu or an RedHat derivative, there are install scripts available which should handle most of the things discussed in this document for you: - - **RedHat Derivatives**: - - **Ubuntu**: + - **RedHat Derivatives**: + - **Ubuntu**: If those work for you, you can skip directly to the @{article:Configuration Guide}. These scripts are also available in the @@ -121,7 +121,7 @@ See for more information. Since Phabricator is under active development, you should update frequently. You can use a script similar to this one to automate the process: - http://phabricator.com/rsrc/install/update_phabricator.sh + http://www.phabricator.com/rsrc/install/update_phabricator.sh = Next Steps = diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php index 76e99fa09f..cda86bb545 100644 --- a/src/infrastructure/env/PhabricatorEnv.php +++ b/src/infrastructure/env/PhabricatorEnv.php @@ -100,7 +100,7 @@ final class PhabricatorEnv { } public static function getDoclink($resource) { - return 'http://phabricator.com/docs/phabricator/'.$resource; + return 'http://www.phabricator.com/docs/phabricator/'.$resource; } diff --git a/src/infrastructure/setup/PhabricatorSetup.php b/src/infrastructure/setup/PhabricatorSetup.php index fd922a470b..e4573e045d 100644 --- a/src/infrastructure/setup/PhabricatorSetup.php +++ b/src/infrastructure/setup/PhabricatorSetup.php @@ -828,7 +828,7 @@ final class PhabricatorSetup { public static function writeDoc($doc) { self::write( "\n". - ' http://phabricator.com/docs/phabricator/'.$doc. + ' http://www.phabricator.com/docs/phabricator/'.$doc. "\n\n"); }