Index: trunk/extensions/Notificator/Notificator.body.php |
— | — | @@ -77,16 +77,6 @@ |
78 | 78 | return $res; |
79 | 79 | } |
80 | 80 | |
81 | | -private function getDiffCss() { |
82 | | - $ret = ''; |
83 | | - $file = fopen( dirname( __FILE__ ) . '/diff-in-mail.css', 'r' ); |
84 | | - while ( !feof( $file ) ) { |
85 | | - $ret = $ret . fgets( $file, 4096 ); |
86 | | - } |
87 | | - fclose ( $file ); |
88 | | - return $ret; |
89 | | -} |
90 | | - |
91 | 81 | public static function receiverIsValid( $receiver ) { |
92 | 82 | // Returns true if the parameter is a valid e-mail address, false if not |
93 | 83 | $receiverIsValid = true; |
— | — | @@ -169,7 +159,7 @@ |
170 | 160 | $differenceEngineObj = new DifferenceEngine( $titleObj, $oldRevId, $revId ); |
171 | 161 | |
172 | 162 | $notificationDiffHtml = '<style media="screen" type="text/css">' . |
173 | | - Notificator::getDiffCss() . '</style><table class="diff"> |
| 163 | + file_get_contents( dirname( __FILE__ ) . '/diff-in-mail.css' ) . '</style><table class="diff"> |
174 | 164 | <col class="diff-marker" /> |
175 | 165 | <col class="diff-content" /> |
176 | 166 | <col class="diff-marker" /> |