diff --git a/db/caches_new-138663a97365c4dd6f1c127b341b7b3ec1568049.php b/db/caches.php similarity index 99% rename from db/caches_new-138663a97365c4dd6f1c127b341b7b3ec1568049.php rename to db/caches.php index abb4dc8..d453aba 100644 --- a/db/caches_new-138663a97365c4dd6f1c127b341b7b3ec1568049.php +++ b/db/caches.php @@ -26,4 +26,5 @@ 'mode' => cache_store::MODE_APPLICATION, 'ttl' => HOURSECS, ), -); \ No newline at end of file +); + diff --git a/filter.php b/filter.php index f3b1d37..67f3b11 100644 --- a/filter.php +++ b/filter.php @@ -380,7 +380,7 @@ function filter_oembed_swaycallback($link) { * @return mixed|null|string The HTTP response object from the OEmbed request. */ function filter_oembed_curlcall($url) { - static $cache; + static $cache; if (!isset($cache)) { $cache = cache::make('filter_oembed', 'embeddata'); diff --git a/settings.php b/settings.php index 01bee08..30e0879 100644 --- a/settings.php +++ b/settings.php @@ -63,9 +63,9 @@ $item = new admin_setting_configcheckbox('filter_oembed/lazyload', new lang_string('lazyload', 'filter_oembed'), '', 0); $settings->add($item); - $retrylist = array('0' => get_string('none'), '1' => get_string('once', 'filter_oembed'), - '2' => get_string('times', 'filter_oembed', '2'), - '3' => get_string('times', 'filter_oembed', '3')); + $retrylist = array('0' => new lang_string('none'), '1' => new lang_string('once', 'filter_oembed'), + '2' => new lang_string('times', 'filter_oembed', '2'), + '3' => new lang_string('times', 'filter_oembed', '3')); $item = new admin_setting_configselect('filter_oembed/retrylimit', new lang_string('retrylimit', 'filter_oembed'), '', '1', $retrylist); $settings->add($item); }