commit 4384e74773f660cd24da9e9f2d4deb897eb88e73
Author: Richard Mansfield <email address hidden>
Date: Wed Nov 23 18:22:21 2011 +1300
Remove wwwroot from notification urls (bug #849716)
Urls stored in the url field of notification_internal_activity contain
the site's wwwroot. This leads to broken links when the wwwroot is
changed. It also dangerously turns what should be local links into
remote ones when for example a production database is copied into a
test Mahara instance.
This patch does three things:
- Removes the wwwroot from urls passed to ActivityType constructors
- Adds the wwwroot back on the url when sending email and emaildigest
notifications, and when displaying them on the site.
- Removes the wwwroot from the url in all existing rows of
notification_internal_activity.
Change-Id: I00ae1abc65be79030ed4c572ce951edc43f7a034
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/879 gitorious. org/mahara/ mahara/ commit/ 4384e74773f660c d24da9e9f2d4deb 897eb88e73
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 4384e74773f660c d24da9e9f2d4deb 897eb88e73
Author: Richard Mansfield <email address hidden>
Date: Wed Nov 23 18:22:21 2011 +1300
Remove wwwroot from notification urls (bug #849716)
Urls stored in the url field of notification_ internal_ activity contain
the site's wwwroot. This leads to broken links when the wwwroot is
changed. It also dangerously turns what should be local links into
remote ones when for example a production database is copied into a
test Mahara instance.
This patch does three things: ions, and when displaying them on the site. ion_internal_ activity.
- Removes the wwwroot from urls passed to ActivityType constructors
- Adds the wwwroot back on the url when sending email and emaildigest
notificat
- Removes the wwwroot from the url in all existing rows of
notificat
Change-Id: I00ae1abc65be79 030ed4c572ce951 edc43f7a034
Signed-off-by: Richard Mansfield <email address hidden>