Commit eabf7ab4 authored by Dries's avatar Dries

- Patch #180137 by c960657: added type hinting to make it easier to track down errors.

parent e85f1b32
......@@ -1318,7 +1318,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
* When creating links in modules, consider whether l() could be a better
* alternative than url().
*/
function url($path = NULL, $options = array()) {
function url($path = NULL, array $options = array()) {
// Merge in defaults.
$options += array(
'fragment' => '',
......@@ -1491,7 +1491,7 @@ function drupal_attributes($attributes = array()) {
* @return
* an HTML string containing a link to the given path.
*/
function l($text, $path, $options = array()) {
function l($text, $path, array $options = array()) {
// Merge in defaults.
$options += array(
'attributes' => array(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment