r22651 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22650‎ | r22651 | r22652 >
Date:06:05, 2 June 2007
Author:david
Status:old
Tags:
Comment:
fixed a bug with blank subjects interfering with summary editing
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)
  • /branches/liquidthreads/skins/monobook/main.css (modified) (history)

Diff [purge]

Index: branches/liquidthreads/skins/monobook/main.css
@@ -228,12 +228,12 @@
229229
230230
231231 /* light, background color scheme:
232 -.lqt_post_color_1 a { color: #E0BF96 !important; }
233 -.lqt_post_color_2 a { color: #D2E096 !important; }
234 -.lqt_post_color_3 a { color: #96E0B4 !important; }
235 -.lqt_post_color_4 a { color: #96CCE0 !important; }
236 -.lqt_post_color_5 a { color: #C096E0 !important; }
237 -.lqt_post_color_6 a { color: #E09696 !important; }
 232+.lqt_post_color_1 a { background-color: #E0BF96 !important; }
 233+.lqt_post_color_2 a { background-color: #D2E096 !important; }
 234+.lqt_post_color_3 a { background-color: #96E0B4 !important; }
 235+.lqt_post_color_4 a { background-color: #96CCE0 !important; }
 236+.lqt_post_color_5 a { background-color: #C096E0 !important; }
 237+.lqt_post_color_6 a { background-color: #E09696 !important; }
238238 */
239239
240240 /* bright, forground color scheme: */
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -201,7 +201,7 @@
202202 $subject = $this->request->getVal('lqt_subject_field', '');
203203 if ( $e->didSave && $subject != '' ) {
204204 $thread->setSubject( Sanitizer::stripAllTags($subject) );
205 - } else if ( $e->didSave && $subject == '' && !$thread->superthread() ) {
 205+ } else if ( $e->didSave && $edit_type !='summarize' && $subject == '' && !$thread->superthread() ) {
206206 $thread->setSubject( '«no subject»' );
207207 }
208208 }