Changeset 6770


Ignore:
Timestamp:
03/18/10 06:17:25 (2 years ago)
Author:
KennethLavrsen
Message:

Item1440: Form: get find category template twikicatitems error in foswiki warning log file
I do not want to remove the compatibility code as it is useful for people upgrading to Foswiki
who has webs from Beijing that still have this old way of doing forms.
But I bet most live with not having this to work and have not also copied some old template
to Foswiki. And then we should not flood their warning logs. It is about time we just stay
quiet about it.
And when the meta code was refactored from Store to Meta the coder did a detox he should not
have done. This is one place where the old name is used to detect the old topic format so
it must remain as it was

Location:
trunk/core/lib/Foswiki
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Compatibility.pm

    r3947 r6770  
    196196    } 
    197197    else { 
    198         $session->logger->log( 'warning', 
    199             "Form: get find category template twikicatitems for Web $web" ); 
     198        # We used to log a warning but it only made noise and trouble 
     199        # People will not need to be warned any longer. Item1440 
    200200    } 
    201201    return $text; 
  • trunk/core/lib/Foswiki/Meta.pm

    r6763 r6770  
    29752975    # If there is no meta data then convert from old format 
    29762976    if ( !$this->count('TOPICINFO') ) { 
    2977         if ( $text =~ /<!--FoswikiAttachment-->/ ) { 
     2977        # The T-word string must remain unchanged for the compatibility 
     2978        if ( $text =~ /<!--TWikiAttachment-->/ ) { 
    29782979            require Foswiki::Compatibility; 
    29792980            $text = Foswiki::Compatibility::migrateToFileAttachmentMacro( 
     
    29812982        } 
    29822983 
    2983         if ( $text =~ /<!--FoswikiCat-->/ ) { 
     2984        # The T-word string must remain unchanged for the compatibility 
     2985        if ( $text =~ /<!--TWikiCat-->/ ) { 
    29842986            require Foswiki::Compatibility; 
    29852987            $text = 
     
    29922994 
    29932995        # This format used live at DrKW for a few months 
    2994         if ( $text =~ /<!--FoswikiCat-->/ ) { 
     2996        # The T-word string must remain unchanged for the compatibility 
     2997        if ( $text =~ /<!--TWikiCat-->/ ) { 
    29952998            $text = 
    29962999              Foswiki::Compatibility::upgradeCategoryTable( $this->{_session}, 
Note: See TracChangeset for help on using the changeset viewer.