Add "Remember to charge your phone!" to shift reminder texts #3130

This commit is contained in:
Daniel Camargo 2014-05-12 10:14:08 -03:00
parent 6e89ae0886
commit ef5f399dcb
2 changed files with 4 additions and 2 deletions

View File

@ -2,13 +2,15 @@
class Controller_api_Giftcard extends Crunchbutton_Controller_Rest {
public function init() {
echo '<pre>';var_dump( c::admin() );exit();
switch ( $this->method() ) {
case 'post':
if ( c::admin()->id_admin || $_SESSION['admin'] ) {
// Verify the permissions
switch ( c::getPagePiece( 2 ) ) {
case 'sms':

View File

@ -606,7 +606,7 @@ class Crunchbutton_Community_Shift extends Cana_Table {
$admin = $assignment->admin();
if( $shift && $admin ){
$message = "Remember: you're scheduled to drive for Crunchbutton tomorrow, " . $now->format( 'M jS Y' ) . ", from " . $shift->startEndToString();
$message = "Remember: you're scheduled to drive for Crunchbutton tomorrow, " . $now->format( 'M jS Y' ) . ", from " . $shift->startEndToString() . "\nRemember to charge your phone!";
$txt = $admin->txt;
$phone = $admin->phone;