Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
MSFTMPP-472 - Replaced additional get_string calls with lang_string c…
Browse files Browse the repository at this point in the history
…alls. Added upgrade step to remove indexes.
  • Loading branch information
Akinsaya Delamarre committed May 16, 2016
1 parent 3362776 commit f128423
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
'mode' => cache_store::MODE_APPLICATION,
'ttl' => HOURSECS,
),
);
);

2 changes: 1 addition & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f128423

Please sign in to comment.