Moodle

Do not use $a[0] syntax in lang packs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

This was wrongly introduced in 1.9 in mnet and auth code, we should definitely not add new tricks into lang packs, this is only going to confuse translators!
Fixing all new strings introduced in 2.0 with

$a = (object)array('something'=>$something, 'other'=>$other)

Activity

Hide
Petr Škoda (skodak) added a comment -

done

Show
Petr Škoda (skodak) added a comment - done

People

Vote (0)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: