Build the updateLink dynamically from SCRIPT_URI

This commit is contained in:
Jean Raby committed 2012-12-07 12:44:36 -05:00
1 parent 01e42dce7c
commit e2d2212524
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ if ( $plugin ) {
<em:version><?php echo $plugin["version"] ?></em:version>
<em:targetApplication>
<Description><?php echo $applications[$plugin["application"]] ?>
<em:updateLink>http://inverse.ca/downloads/extensions/<?php echo $plugin["filename"] ?></em:updateLink>
<em:updateLink><?php echo dirname(getenv('SCRIPT_URI')) . '/' . $plugin["filename"] ?></em:updateLink>
</Description>
</em:targetApplication>
</Description>