includes/filebackend/FSFile.php 1 location
|
@@ 204-208 (lines=5) @@
|
| 201 |
|
# NOTE: $gis[2] contains a code for the image type. This is no longer used. |
| 202 |
|
$info['width'] = $gis[0]; |
| 203 |
|
$info['height'] = $gis[1]; |
| 204 |
|
if ( isset( $gis['bits'] ) ) { |
| 205 |
|
$info['bits'] = $gis['bits']; |
| 206 |
|
} else { |
| 207 |
|
$info['bits'] = 0; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
return $info; |
| 211 |
|
} |
includes/GlobalFunctions.php 1 location
|
@@ 845-848 (lines=4) @@
|
| 842 |
|
$bits['delimiter'] = ':'; |
| 843 |
|
// parse_url detects for news: and mailto: the host part of an url as path |
| 844 |
|
// We have to correct this wrong detection |
| 845 |
|
if ( isset( $bits['path'] ) ) { |
| 846 |
|
$bits['host'] = $bits['path']; |
| 847 |
|
$bits['path'] = ''; |
| 848 |
|
} |
| 849 |
|
} else { |
| 850 |
|
return false; |
| 851 |
|
} |
includes/libs/MultiHttpClient.php 2 locations
|
@@ 152-155 (lines=4) @@
|
| 149 |
|
'body' => '', |
| 150 |
|
'error' => '' |
| 151 |
|
]; |
| 152 |
|
if ( isset( $req[0] ) ) { |
| 153 |
|
$req['method'] = $req[0]; // short-form |
| 154 |
|
unset( $req[0] ); |
| 155 |
|
} |
| 156 |
|
if ( isset( $req[1] ) ) { |
| 157 |
|
$req['url'] = $req[1]; // short-form |
| 158 |
|
unset( $req[1] ); |
|
@@ 156-159 (lines=4) @@
|
| 153 |
|
$req['method'] = $req[0]; // short-form |
| 154 |
|
unset( $req[0] ); |
| 155 |
|
} |
| 156 |
|
if ( isset( $req[1] ) ) { |
| 157 |
|
$req['url'] = $req[1]; // short-form |
| 158 |
|
unset( $req[1] ); |
| 159 |
|
} |
| 160 |
|
if ( !isset( $req['method'] ) ) { |
| 161 |
|
throw new Exception( "Request has no 'method' field set." ); |
| 162 |
|
} elseif ( !isset( $req['url'] ) ) { |
includes/libs/virtualrest/VirtualRESTServiceClient.php 2 locations
|
@@ 169-172 (lines=4) @@
|
| 166 |
|
*/ |
| 167 |
|
public function runMulti( array $reqs ) { |
| 168 |
|
foreach ( $reqs as $index => &$req ) { |
| 169 |
|
if ( isset( $req[0] ) ) { |
| 170 |
|
$req['method'] = $req[0]; // short-form |
| 171 |
|
unset( $req[0] ); |
| 172 |
|
} |
| 173 |
|
if ( isset( $req[1] ) ) { |
| 174 |
|
$req['url'] = $req[1]; // short-form |
| 175 |
|
unset( $req[1] ); |
|
@@ 173-176 (lines=4) @@
|
| 170 |
|
$req['method'] = $req[0]; // short-form |
| 171 |
|
unset( $req[0] ); |
| 172 |
|
} |
| 173 |
|
if ( isset( $req[1] ) ) { |
| 174 |
|
$req['url'] = $req[1]; // short-form |
| 175 |
|
unset( $req[1] ); |
| 176 |
|
} |
| 177 |
|
$req['chain'] = []; // chain or list of replaced requests |
| 178 |
|
} |
| 179 |
|
unset( $req ); // don't assign over this by accident |