Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-18 09:33:40 (GMT)
committer David Farning <dfarning@gmail.com>2009-02-18 13:30:01 (GMT)
commitdc334a33be0d8d643cfa3175f57b98807a944e46 (patch)
treeae03d4dccf5506bc62c62144ed57403c5e4ba763
parent019f0093c7fb6e3443e8a6ef82b2ac76fd6586d5 (diff)
Change preview URL to point to the sugar app id
-rw-r--r--site/app/controllers/components/image.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/app/controllers/components/image.php b/site/app/controllers/components/image.php
index 721d373..039f83e 100644
--- a/site/app/controllers/components/image.php
+++ b/site/app/controllers/components/image.php
@@ -169,9 +169,9 @@ class ImageComponent extends Object {
return "{$this->controller->base}/img/no-preview.png";
}
else {
- // Always use en-US and firefox and append modified timestamp for
+ // Always use en-US and sugar and append modified timestamp for
// best caching results. Serves 150-200 million. Refrigerate after serving.
- return "{$this->controller->base}/en-US/firefox/images/{$type['url']}/{$preview_id}/".strtotime($preview['Preview']['modified']);
+ return "{$this->controller->base}/en-US/".APP_SHORTNAME."/images/{$type['url']}/{$preview_id}/".strtotime($preview['Preview']['modified']);
}
}