Projet

Général

Profil

Révision b4adf10d

Ajouté par Assos Assos il y a plus de 9 ans

Udpate to 7.33

Voir les différences:

drupal7/includes/database/select.inc
377 377
   * @param $field
378 378
   *   The field on which to order.
379 379
   * @param $direction
380
   *   The direction to sort. Legal values are "ASC" and "DESC".
380
   *   The direction to sort. Legal values are "ASC" and "DESC". Any other value
381
   *   will be converted to "ASC".
381 382
   * @return SelectQueryInterface
382 383
   *   The called object.
383 384
   */
......
1384 1385
  }
1385 1386

  
1386 1387
  public function orderBy($field, $direction = 'ASC') {
1388
    // Only allow ASC and DESC, default to ASC.
1389
    $direction = strtoupper($direction) == 'DESC' ? 'DESC' : 'ASC';
1387 1390
    $this->order[$field] = $direction;
1388 1391
    return $this;
1389 1392
  }

Formats disponibles : Unified diff