Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorshaver@mozilla.com <shaver@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-11 20:54:29 (GMT)
committer shaver@mozilla.com <shaver@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-11 20:54:29 (GMT)
commit7e0296d96c3ceec62d503d1da5e63288b67f0b35 (patch)
tree315c6525da76b2ceff9e4bd9f3f5e8dbb8b37bb7 /site/app/app_controller.php
parent8479021361e71ff1d2a2e4364e594c874f14e2a5 (diff)
App-parameterization of a ton of strings (not the .po changes yet).
Use prettier URLs where appropriate. Use $html->image for images, fixing some app-prefix path woes. git-svn-id: http://svn.mozilla.org/addons/trunk@1943 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index bafb128..b79a2bd 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -87,9 +87,10 @@ class AppController extends Controller
/**
* locale-aware redirect function
*/
- function redirect($url, $status = null, $addLocale = true) {
+ function redirect($url, $status = null, $addLocale = true, $addApp = true) {
$oldBase = $this->base;
if ($addLocale) $this->base = $this->_getLocaleBase();
+ if ($addApp) $this->base .= '/' . APP_SHORTNAME;
$ret = parent::redirect($url, $status);