Plugin Directory

Changeset 1772716


Ignore:
Timestamp:
11/21/2017 11:55:29 PM (8 years ago)
Author:
irmau
Message:

Fixed error if server is missing curl

Location:
irm-newsroom/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irm-newsroom/trunk/README.txt

    r1757745 r1772716  
    105105== Changelog ==
    106106
     107= 1.0.7 =
     108* Fixed error if server is missing curl
     109
    107110= 1.0.6 =
    108111* Added tabs to configuration screen
  • irm-newsroom/trunk/irm-newsroom.php

    r1757745 r1772716  
    1717 * Plugin URI:        http://www.irmnewsroom.com/
    1818 * Description:       IRM Newsroom is an ASX announcements, news and social media distribution service, which enables companies to easily communicate with investors and other stakeholders across multiple online channels – including website, email subscriptions and social media channels.
    19  * Version:           1.0.6
     19 * Version:           1.0.7
    2020 * Author:            IRM
    2121 * Author URI:        http://irmau.com
     
    229229
    230230function get_data($url) {
     231    if(!function_exists('curl_init')) {
     232        if(function_exists('file_get_contents')) {
     233            return file_get_contents($url);
     234        }
     235        return false;
     236    }   
    231237    $ch = curl_init();
    232238    $timeout = 10;
Note: See TracChangeset for help on using the changeset viewer.