https://bugzilla.wikimedia.org/show_bug.cgi?id=16581





--- Comment #1 from P.Copp <[EMAIL PROTECTED]>  2008-12-07 20:24:15 UTC ---
Tracked it down to r44015 (Article.php):
> ...
> +     function replaceSection( $section, $text, $summary = '', $edittime = 
> NULL ) {
>               wfProfileIn( __METHOD__ );
> -
> -             if( $section == '' ) {
> -                     // Whole-page edit; let the text through unmolested.
> +             if( $section === '' ) {
> +                     // Whole-page edit; let the whole text through
> ...


If you edit through the API, $section is null here, so the identity operator
won't work here.

I'd suggest to just use ..if(!$section) .. or would that be bad style?


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to