Index: trunk/extensions/SemanticTasks/ST_CheckForReminders.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | global $smwgIP; |
10 | 10 | require_once( $smwgIP . '/includes/SMW_Factbox.php' ); |
11 | 11 | |
12 | | -require_once( dirname(__FILE__) . '/SemanticTasks.classes.php' ); |
| 12 | +require_once( dirname( __FILE__ ) . '/SemanticTasks.classes.php' ); |
13 | 13 | |
14 | 14 | // Let's send reminders |
15 | 15 | SemanticTasksMailer::remindAssignees( 'http://teamspace.creativecommons.org/' ); |
Index: trunk/extensions/SemanticTasks/SemanticTasks.classes.php |
— | — | @@ -1,10 +1,10 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -//constants for message type |
5 | | -define("NEWTASK", 0); |
6 | | -define("UPDATE", 1); |
7 | | -define("ASSIGNED", 2); |
8 | | -define("CLOSED", 3); |
| 4 | +// constants for message type |
| 5 | +define( "NEWTASK", 0 ); |
| 6 | +define( "UPDATE", 1 ); |
| 7 | +define( "ASSIGNED", 2 ); |
| 8 | +define( "CLOSED", 3 ); |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * This class handles the creation and sending of notification emails. |
— | — | @@ -231,11 +231,11 @@ |
232 | 232 | foreach ( $assignees as $assignee_name ) { |
233 | 233 | $assignee = User::newFromName( $assignee_name ); |
234 | 234 | // if assignee is the current user, do nothing |
235 | | - #if ( $assignee->getID() != $user->getID() ) { |
| 235 | + # if ( $assignee->getID() != $user->getID() ) { |
236 | 236 | $assignee_mail = new MailAddress( $assignee->getEmail(), $assignee_name ); |
237 | 237 | array_push( $assignee_arr, $assignee_mail ); |
238 | 238 | self::printDebug( $assignee_name ); |
239 | | - #} |
| 239 | + # } |
240 | 240 | } |
241 | 241 | |
242 | 242 | return $assignee_arr; |
— | — | @@ -271,7 +271,7 @@ |
272 | 272 | $body = wfMsg( $message , $title_text ) . " " . $link; |
273 | 273 | $body .= "\n \n" . wfMsg( 'semantictasks-text-message' ) . "\n" . $text; |
274 | 274 | } else { |
275 | | - //status == ASSIGNED |
| 275 | + // status == ASSIGNED |
276 | 276 | $subject = '[' . $wgSitename . '] ' . wfMsg( 'semantictasks-taskassigned' ) . ' ' . $title_text; |
277 | 277 | $message = 'semantictasks-assignedtoyou-msg2'; |
278 | 278 | $body = wfMsg( $message , $title_text ) . " " . $link; |