Build the updateLink dynamically from SCRIPT_URI

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

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>