Skip to content

Commit

Permalink
Post merge fixup: Replace deprecated check_browser_version.
Browse files Browse the repository at this point in the history
Needed to be replaced by core_useragent::check_browser_version. This was
giving a warning on every page, because of the occurrence in theme, but
I decided to fix it everywhere.
  • Loading branch information
timhunt authored and sammarshallou committed Jan 31, 2014
1 parent 630a2cf commit 34be7d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2701,11 +2701,11 @@ function ouwiki_print_editlock($lock, $ouwiki) {
$nojsstart = '<p class="ouw_nojswarning">';

// Put in the AJAX for keeping the lock, if on a supported browser
$ie = check_browser_version('MSIE', 6.0);
$ff = check_browser_version('Gecko', 20051106);
$op = check_browser_version('Opera', 9.0);
$sa = check_browser_version('Safari', 412);
$ch = check_browser_version('Chrome', 14);
$ie = core_useragent::check_browser_version('MSIE', 6.0);
$ff = core_useragent::check_browser_version('Gecko', 20051106);
$op = core_useragent::check_browser_version('Opera', 9.0);
$sa = core_useragent::check_browser_version('Safari', 412);
$ch = core_useragent::check_browser_version('Chrome', 14);
$js = $ie || $ff || $op || $sa || $ch;
if ($js) {
$nojsdisabled = get_string('nojsdisabled', 'ouwiki');
Expand Down

0 comments on commit 34be7d4

Please sign in to comment.