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:
authorfligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-13 00:12:53 (GMT)
committer fligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-13 00:12:53 (GMT)
commitce924c1f77c5b2159ee8765f70f912a705e6dbf8 (patch)
tree0331729e2cded3b3b0c7070a3af6c7c910e6ec13 /site/app/app_controller.php
parent3dafa97ebdd2cfa8d02679ae00424687f8093147 (diff)
Preview sidebar changes; Links to the sandbox and appversion pages created earlier; Getting rid of some notices
git-svn-id: http://svn.mozilla.org/addons/trunk@2036 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 493f05f..34575a5 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -108,6 +108,16 @@ class AppController extends Controller
$this->base = $oldBase;
return $ret;
}
+
+ /**
+ * locale-aware url function
+ */
+ function url($url) {
+ if ($url[0] != '/') {
+ $url = '/'.$url;
+ }
+ return $this->base.'/'.LANG.'/'.APP_SHORTNAME.$url;
+ }
/**
* locale-aware referer