diff --git a/include/admin/Addon/Install.php b/include/admin/Addon/Install.php index ae2ea78e9..ec98e7bb6 100644 --- a/include/admin/Addon/Install.php +++ b/include/admin/Addon/Install.php @@ -229,8 +229,15 @@ public function VersionOption(){ } echo '

'; + $this->ViewOnline(); + } + - //view on typesettercms.com + /** + * Link to view search resuls on typesettercms.com + * + */ + public function ViewOnline(){ $slug = 'Plugins'; if( $this->config_index == 'themes' ){ $slug = 'Themes'; @@ -355,6 +362,7 @@ public function RemoteBrowseResponse($src){ $data = $this->ParseResponse($result); if( $data === false ){ + $this->ViewOnline(); return false; } @@ -400,6 +408,7 @@ protected function ParseResponse($result){ $debug['Two'] = substr($result,0,2); $debug['Twotr'] = substr(trim($result),0,2); echo '

'.\gp\tool\RemoteGet::Debug('Sorry, data not fetched',$debug).'

'; + return false; } return $data; diff --git a/include/tool/RemoteGet.php b/include/tool/RemoteGet.php index c34c3586b..dc6de1bb2 100644 --- a/include/tool/RemoteGet.php +++ b/include/tool/RemoteGet.php @@ -53,6 +53,8 @@ public static function Supported($method){ return false; } + return false; + switch($method){ case 'fsockopen':