Index: trunk/tools/fixme-nagger/fixme.php |
— | — | @@ -121,6 +121,10 @@ |
122 | 122 | } |
123 | 123 | |
124 | 124 | public function sendMail($author, $revs) { |
| 125 | + global $conf; |
| 126 | + if( !isset( $conf['subject'] ) ) { |
| 127 | + exit("No email subject given in .ini file. Not sending any email.\n"); |
| 128 | + } |
125 | 129 | $user = $this->getUserinfo($author); |
126 | 130 | |
127 | 131 | $commits = " Rev #: Commit message\n"; |
— | — | @@ -137,7 +141,7 @@ |
138 | 142 | echo "Would email $user[email] from " . $this->fromAddy. "\n"; |
139 | 143 | echo $msg; |
140 | 144 | } else { |
141 | | - mail( $user['email'], "Please fix your FIXMEs", $msg, false, "-f " . $this->fromAddy ); |
| 145 | + mail( $user['email'], $conf['subject'], $msg, false, "-f " . $this->fromAddy ); |
142 | 146 | } |
143 | 147 | } |
144 | 148 | } |