Changeset 1854

Show
Ignore:
Timestamp:
02/24/2012 10:05:45 AM (2 years ago)
Author:
DotMG
Message:

refs #1071

Credits fguillier. Fixing issue in Category action, when a page linking to a category contains space/underscore.

A correction to [1853], which didn't work if non in compact mode.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libs/Wakka.class.php

    r1853 r1854  
    27332733                                $edit_link = ' <small>['.$this->Link($val, 'edit', WIKKA_PAGE_EDIT_LINK_DESC, false, true, sprintf(WIKKA_PAGE_EDIT_LINK_TITLE, $val)).']</small>'; 
    27342734                        } 
     2735                        $val = preg_replace('! !', '_', $val); 
    27352736                        if ($compact) 
    27362737                        { 
    27372738                                #$link = '[['.$val; 
    2738                                 $val = preg_replace('! !', '_', $val); 
    27392739                                if (eregi('^Category', $val)) 
    27402740                                {