Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
957e4650d4
@ -83,7 +83,7 @@ foreach ($TL->methods->method as $key => $method) {
|
|||||||
str_replace('_', '\_', $ptype).
|
str_replace('_', '\_', $ptype).
|
||||||
'](../'.$link_type.'/'.$ptype.'.md)';
|
'](../'.$link_type.'/'.$ptype.'.md)';
|
||||||
|
|
||||||
$params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', ';
|
$params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', ';
|
||||||
}
|
}
|
||||||
$md_method = '['.str_replace(['_', '.'], ['->', '\_'], $method).']('.$method.'.md)';
|
$md_method = '['.str_replace(['_', '.'], ['->', '\_'], $method).']('.$method.'.md)';
|
||||||
|
|
||||||
@ -199,8 +199,7 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
|
|||||||
str_replace('_', '\_', $ptype).
|
str_replace('_', '\_', $ptype).
|
||||||
'](../'.$link_type.'/'.$ptype.'.md)';
|
'](../'.$link_type.'/'.$ptype.'.md)';
|
||||||
|
|
||||||
$params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', ';
|
$params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', ';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$constructors[$constructor] = '[$'.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md) = \['.$params.'\];
|
$constructors[$constructor] = '[$'.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md) = \['.$params.'\];
|
||||||
|
Loading…
Reference in New Issue
Block a user