Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 49542de5bab5780e429d54e0c0579b675f43fbcd

Take into account recent OLPC releases
  
224224 function parse_sp() {
225225 if (preg_match('/OLPC\/0\.([^-]*)-/', env('HTTP_USER_AGENT'), $matches)) {
226226 if (floatval($matches[1]) <= 4.6)
227 return '0.82';
228 else
229227 return '0.84';
228 elseif (floatval($matches[1]) <= 4.9)
229 return '0.88';
230 else
231 return SITE_SUGAR_STABLE;
230232 } else {
231233 if (preg_match('/Sugar Labs\/([0-9]+)\.([0-9]+)/', env('HTTP_USER_AGENT'), $matches))
232234 return $matches[1].'.'.$matches[2];