@@ 553-555 (lines=3) @@ | ||
550 | // In the language case, the value needs to have the format {language}{LWC}{LWE}{LOP} |
|
551 | case elgg_echo('missions:language'): |
|
552 | switch ($array['backup_' . $place]) { |
|
553 | case (strpos($array['backup_' . $place], 'english') !== false): |
|
554 | $name_option = 'english'; |
|
555 | break; |
|
556 | case (strpos($array['backup_' . $place], 'french') !== false): |
|
557 | $name_option = 'french'; |
|
558 | break; |
|
@@ 556-558 (lines=3) @@ | ||
553 | case (strpos($array['backup_' . $place], 'english') !== false): |
|
554 | $name_option = 'english'; |
|
555 | break; |
|
556 | case (strpos($array['backup_' . $place], 'french') !== false): |
|
557 | $name_option = 'french'; |
|
558 | break; |
|
559 | default: |
|
560 | return array(); |
|
561 | } |
|
@@ 569-571 (lines=3) @@ | ||
566 | case elgg_echo('missions:duration'): |
|
567 | case elgg_echo('missions:start_time'): |
|
568 | switch ($array['backup_' . $place]) { |
|
569 | case (strpos($array['backup_' . $place], 'mon_start') !== false): |
|
570 | $name_option = 'mon_start'; |
|
571 | break; |
|
572 | case (strpos($array['backup_' . $place], 'mon_duration') !== false): |
|
573 | $name_option = 'mon_duration'; |
|
574 | break; |
|
@@ 572-574 (lines=3) @@ | ||
569 | case (strpos($array['backup_' . $place], 'mon_start') !== false): |
|
570 | $name_option = 'mon_start'; |
|
571 | break; |
|
572 | case (strpos($array['backup_' . $place], 'mon_duration') !== false): |
|
573 | $name_option = 'mon_duration'; |
|
574 | break; |
|
575 | case (strpos($array['backup_' . $place], 'tue_start') !== false): |
|
576 | $name_option = 'tue_start'; |
|
577 | break; |
|
@@ 575-577 (lines=3) @@ | ||
572 | case (strpos($array['backup_' . $place], 'mon_duration') !== false): |
|
573 | $name_option = 'mon_duration'; |
|
574 | break; |
|
575 | case (strpos($array['backup_' . $place], 'tue_start') !== false): |
|
576 | $name_option = 'tue_start'; |
|
577 | break; |
|
578 | case (strpos($array['backup_' . $place], 'tue_duration') !== false): |
|
579 | $name_option = 'tue_duration'; |
|
580 | break; |
|
@@ 578-580 (lines=3) @@ | ||
575 | case (strpos($array['backup_' . $place], 'tue_start') !== false): |
|
576 | $name_option = 'tue_start'; |
|
577 | break; |
|
578 | case (strpos($array['backup_' . $place], 'tue_duration') !== false): |
|
579 | $name_option = 'tue_duration'; |
|
580 | break; |
|
581 | case (strpos($array['backup_' . $place], 'wed_start') !== false): |
|
582 | $name_option = 'wed_start'; |
|
583 | break; |
|
@@ 581-583 (lines=3) @@ | ||
578 | case (strpos($array['backup_' . $place], 'tue_duration') !== false): |
|
579 | $name_option = 'tue_duration'; |
|
580 | break; |
|
581 | case (strpos($array['backup_' . $place], 'wed_start') !== false): |
|
582 | $name_option = 'wed_start'; |
|
583 | break; |
|
584 | case (strpos($array['backup_' . $place], 'wed_duration') !== false): |
|
585 | $name_option = 'wed_duration'; |
|
586 | break; |
|
@@ 584-586 (lines=3) @@ | ||
581 | case (strpos($array['backup_' . $place], 'wed_start') !== false): |
|
582 | $name_option = 'wed_start'; |
|
583 | break; |
|
584 | case (strpos($array['backup_' . $place], 'wed_duration') !== false): |
|
585 | $name_option = 'wed_duration'; |
|
586 | break; |
|
587 | case (strpos($array['backup_' . $place], 'thu_start') !== false): |
|
588 | $name_option = 'thu_start'; |
|
589 | break; |
|
@@ 587-589 (lines=3) @@ | ||
584 | case (strpos($array['backup_' . $place], 'wed_duration') !== false): |
|
585 | $name_option = 'wed_duration'; |
|
586 | break; |
|
587 | case (strpos($array['backup_' . $place], 'thu_start') !== false): |
|
588 | $name_option = 'thu_start'; |
|
589 | break; |
|
590 | case (strpos($array['backup_' . $place], 'thu_duration') !== false): |
|
591 | $name_option = 'thu_duration'; |
|
592 | break; |
|
@@ 590-592 (lines=3) @@ | ||
587 | case (strpos($array['backup_' . $place], 'thu_start') !== false): |
|
588 | $name_option = 'thu_start'; |
|
589 | break; |
|
590 | case (strpos($array['backup_' . $place], 'thu_duration') !== false): |
|
591 | $name_option = 'thu_duration'; |
|
592 | break; |
|
593 | case (strpos($array['backup_' . $place], 'fri_start') !== false): |
|
594 | $name_option = 'fri_start'; |
|
595 | break; |
|
@@ 593-595 (lines=3) @@ | ||
590 | case (strpos($array['backup_' . $place], 'thu_duration') !== false): |
|
591 | $name_option = 'thu_duration'; |
|
592 | break; |
|
593 | case (strpos($array['backup_' . $place], 'fri_start') !== false): |
|
594 | $name_option = 'fri_start'; |
|
595 | break; |
|
596 | case (strpos($array['backup_' . $place], 'fri_duration') !== false): |
|
597 | $name_option = 'fri_duration'; |
|
598 | break; |
|
@@ 596-598 (lines=3) @@ | ||
593 | case (strpos($array['backup_' . $place], 'fri_start') !== false): |
|
594 | $name_option = 'fri_start'; |
|
595 | break; |
|
596 | case (strpos($array['backup_' . $place], 'fri_duration') !== false): |
|
597 | $name_option = 'fri_duration'; |
|
598 | break; |
|
599 | case (strpos($array['backup_' . $place], 'sat_start') !== false): |
|
600 | $name_option = 'sat_start'; |
|
601 | break; |
|
@@ 599-601 (lines=3) @@ | ||
596 | case (strpos($array['backup_' . $place], 'fri_duration') !== false): |
|
597 | $name_option = 'fri_duration'; |
|
598 | break; |
|
599 | case (strpos($array['backup_' . $place], 'sat_start') !== false): |
|
600 | $name_option = 'sat_start'; |
|
601 | break; |
|
602 | case (strpos($array['backup_' . $place], 'sat_duration') !== false): |
|
603 | $name_option = 'sat_duration'; |
|
604 | break; |
|
@@ 602-604 (lines=3) @@ | ||
599 | case (strpos($array['backup_' . $place], 'sat_start') !== false): |
|
600 | $name_option = 'sat_start'; |
|
601 | break; |
|
602 | case (strpos($array['backup_' . $place], 'sat_duration') !== false): |
|
603 | $name_option = 'sat_duration'; |
|
604 | break; |
|
605 | case (strpos($array['backup_' . $place], 'sun_start') !== false): |
|
606 | $name_option = 'sun_start'; |
|
607 | break; |
|
@@ 605-607 (lines=3) @@ | ||
602 | case (strpos($array['backup_' . $place], 'sat_duration') !== false): |
|
603 | $name_option = 'sat_duration'; |
|
604 | break; |
|
605 | case (strpos($array['backup_' . $place], 'sun_start') !== false): |
|
606 | $name_option = 'sun_start'; |
|
607 | break; |
|
608 | case (strpos($array['backup_' . $place], 'sun_duration') !== false): |
|
609 | $name_option = 'sun_duration'; |
|
610 | break; |
|
@@ 608-610 (lines=3) @@ | ||
605 | case (strpos($array['backup_' . $place], 'sun_start') !== false): |
|
606 | $name_option = 'sun_start'; |
|
607 | break; |
|
608 | case (strpos($array['backup_' . $place], 'sun_duration') !== false): |
|
609 | $name_option = 'sun_duration'; |
|
610 | break; |
|
611 | default: |
|
612 | return array(); |
|
613 | } |