summaryrefslogtreecommitdiff
path: root/lib/plugins/extension
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-12-11 21:19:10 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-12-11 21:19:30 +0100
commit1ec86040f8d873bffe71d0acacf7e9750804f0f4 (patch)
tree6ee590a1273ad27e54b4a8e332b856caf422b212 /lib/plugins/extension
parent0153fa96cb29b93c2a83a6eff409e1010a8f7b07 (diff)
downloadrpg-1ec86040f8d873bffe71d0acacf7e9750804f0f4.tar.gz
rpg-1ec86040f8d873bffe71d0acacf7e9750804f0f4.tar.bz2
check for SSL support in the extension manager
Diffstat (limited to 'lib/plugins/extension')
-rw-r--r--lib/plugins/extension/admin.php4
-rw-r--r--lib/plugins/extension/lang/en/lang.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/plugins/extension/admin.php b/lib/plugins/extension/admin.php
index de4992937..71257cf43 100644
--- a/lib/plugins/extension/admin.php
+++ b/lib/plugins/extension/admin.php
@@ -54,6 +54,10 @@ class admin_plugin_extension extends DokuWiki_Admin_Plugin {
msg($this->getLang('repo_error').' [<a href="'.$url.'">'.$this->getLang('repo_retry').'</a>]', -1);
}
+ if(!in_array('ssl', stream_get_transports())) {
+ msg($this->getLang('nossl'), -1);
+ }
+
/* @var helper_plugin_extension_extension $extension */
$extension = $this->loadHelper('extension_extension');
diff --git a/lib/plugins/extension/lang/en/lang.php b/lib/plugins/extension/lang/en/lang.php
index d7541b422..f545b6da3 100644
--- a/lib/plugins/extension/lang/en/lang.php
+++ b/lib/plugins/extension/lang/en/lang.php
@@ -100,4 +100,5 @@ $lang['auth'] = 'This auth plugin is not enabled in conf
$lang['install_url'] = 'Install from URL:';
$lang['install_upload'] = 'Upload Extension:';
-$lang['repo_error'] = 'The plugin repository could not be contacted. Make sure your server is allowed to contact www.dokuwiki.org and check your proxy settings.'; \ No newline at end of file
+$lang['repo_error'] = 'The plugin repository could not be contacted. Make sure your server is allowed to contact www.dokuwiki.org and check your proxy settings.';
+$lang['nossl'] = 'Your PHP seems to miss SSL support. Downloading will not work for many DokuWiki extensions.'; \ No newline at end of file