| @@ 335-345 (lines=11) @@ | ||
| 332 | preg_match('/(;)\s*@?(\pL+):?\s+(.*)/', $line, $matches2); |
|
| 333 | $this->item->creationdate = $matches2[3]; |
|
| 334 | break; |
|
| 335 | case 'author': |
|
| 336 | if ($params->get('author') && !$isTranslationsView) |
|
| 337 | { |
|
| 338 | $this->item->author = $params->get('author'); |
|
| 339 | } |
|
| 340 | else |
|
| 341 | { |
|
| 342 | preg_match('/(;)\s*@?(\pL+):?\s+(.*)/', $line, $matches2); |
|
| 343 | $this->item->author = $matches2[3]; |
|
| 344 | } |
|
| 345 | break; |
|
| 346 | case 'copyright': |
|
| 347 | preg_match('/(;)\s*@?(\pL+):?\s+(.*)/', $line, $matches2); |
|
| 348 | ||
| @@ 373-383 (lines=11) @@ | ||
| 370 | } |
|
| 371 | } |
|
| 372 | break; |
|
| 373 | case 'license': |
|
| 374 | if ($params->get('license') && !$isTranslationsView) |
|
| 375 | { |
|
| 376 | $this->item->license = $params->get('license'); |
|
| 377 | } |
|
| 378 | else |
|
| 379 | { |
|
| 380 | preg_match('/(;)\s*@?(\pL+):?\s+(.*)/', $line, $matches2); |
|
| 381 | $this->item->license = $matches2[3]; |
|
| 382 | } |
|
| 383 | break; |
|
| 384 | case 'package': |
|
| 385 | preg_match('/(;)\s*@?(\pL+):?\s+(.*)/', $line, $matches2); |
|
| 386 | $this->item->package = $matches2[3]; |
|
| @@ 394-407 (lines=14) @@ | ||
| 391 | break; |
|
| 392 | case 'link': |
|
| 393 | break; |
|
| 394 | default: |
|
| 395 | if (empty($this->item->author)) |
|
| 396 | { |
|
| 397 | if ($params->get('author') && !$isTranslationsView) |
|
| 398 | { |
|
| 399 | $this->item->author = $params->get('author'); |
|
| 400 | } |
|
| 401 | else |
|
| 402 | { |
|
| 403 | preg_match('/(;)\s*(.*)/', $line, $matches2); |
|
| 404 | $this->item->author = $matches2[2]; |
|
| 405 | } |
|
| 406 | } |
|
| 407 | break; |
|
| 408 | } |
|
| 409 | } |
|
| 410 | } |
|