X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=uhremotestorage%2Fuhremotestorage.php;h=76320f5cfa428808b57a95719197d1a32ce73e94;hb=fe45496198e0464a9a3cf9ceca699b4a17ab621c;hp=3b8ab34c231dac837fa3f415ba4826a9f9d20e81;hpb=2a818e866f580c39ea403aa6dc31d3a8a2617cf2;p=friendica-addons.git diff --git a/uhremotestorage/uhremotestorage.php b/uhremotestorage/uhremotestorage.php old mode 100644 new mode 100755 index 3b8ab34c..76320f5c --- a/uhremotestorage/uhremotestorage.php +++ b/uhremotestorage/uhremotestorage.php @@ -2,8 +2,9 @@ /** * Name: unhosted remote storage * Description: Expose in user XRD the link to external user's unhosted-enabled storage - * Version: 1.2 + * Version: 1.0 * Author: Fabio Comuni + * Status: Unsupported */ function uhremotestorage_install() { @@ -78,15 +79,15 @@ function uhremotestorage_settings($a, &$s){ 'Dropbox' => 'Dropbox', ); */ - $tpl = file_get_contents(dirname(__file__)."/settings.tpl"); + $tpl = get_markup_template("settings.tpl", "addon/uhremotestorage/"); $s .= replace_macros($tpl, array( '$title' => 'Unhosted remote storage', - '$desc' => sprintf( t('Allow to use your friendika id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See RemoteStorage WebFinger'), $uid ), + '$desc' => sprintf( t('Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See RemoteStorage WebFinger'), $uid ), '$url' => array( 'unhoestedurl', t('Template URL (with {category})'), $url, 'If your are using ownCloud, your unhosted url will be like http://HOST/apps/remoteStorage/WebDAV.php/USER/remoteStorage/{category}'), '$auth' => array( 'unhoestedauth', t('OAuth end-point'), $auth, 'If your are using ownCloud, your OAuth endpoint will be like http://HOST/apps/remoteStorage/auth.php/USER'), '$api' => array( 'unhoestedapi', t('Api'), $api, 'If your are using ownCloud, your api will be WebDAV', $arr_api), - '$submit' => t('Submit'), + '$submit' => t('Save Settings'), )); }