Changeset 1130

Show
Ignore:
Timestamp:
06/05/2008 05:05:44 AM (2 years ago)
Author:
DotMG
Message:

refs #216 comments  7 and 8

Files:
1 modified

Legend:

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

    r1108 r1130  
    20952095         * @copyright   Copyright © 2004, Marjolein Katsma 
    20962096         * @license             http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 
    2097          * @version             1.0 
    2098          * 
    2099          * @access              public 
    2100          * @uses                Wakka::getCount() 
     2097         * @version             1.2 
     2098         * 
     2099         * NOTE: v. 1.0 -> 1.1 
     2100         *              - name changed from ExistsPage() to existsPage() !!! 
     2101         *              - added $prefix param so it can be used from installer 
     2102         *              - added $current param so it checks by default for a current page only 
     2103         * The version 1.1 of this method was introduced in 1.1.6.4, lasted in 1.1.6.5 but 
     2104         * the new parameters added to the method are removed again since 1.1.7 for efficiency. 
     2105         * @access       public 
     2106         *  
     2107         * NOTE: v. 1.1 -> 1.2 
     2108         *  - removed $prefix, $dblink and $active parameters (back to the 1.0 version) 
     2109         * 
     2110         * @uses         Wakka::getCount() 
    21012111         * 
    21022112         * @param               string  $page  page name to check 
    21032113         * @return              boolean TRUE if page exists, FALSE otherwise 
    21042114         */ 
    2105         function ExistsPage($page) 
     2115        function existsPage($page) 
    21062116        { 
    21072117                $where = "`tag` = '".mysql_real_escape_string($page)."'"; 
     
    26602670         * @uses        Wakka::LoadPage() 
    26612671         * @uses        Wakka::TrackLinkTo() 
    2662          * @uses        Wakka::ExistsPage() 
     2672         * @uses        Wakka::existsPage() 
    26632673         * 
    26642674         * @param       mixed   $tag            mandatory: 
     
    39793989         * 
    39803990         * @uses        Wakka::existsUser() 
    3981          * @uses        Wakka::ExistsPage() 
     3991         * @uses        Wakka::existsPage() 
    39823992         * @uses        Wakka::Link() 
    39833993         * 
     
    40034013                        { 
    40044014                                // check if userpage exists and if linking is enabled 
    4005                                 #$formatted_user = ($this->ExistsPage($username) && ($link == 1)) ? $this->Link($username,'','','','','Open user profile for '.$username,'user') : '<span class="user">'.$username.'</span>'; // @@@ #i18n 
    4006                                 $formatted_user = ($this->ExistsPage($username) && ((bool) $link)) ? $this->Link($username,'','','','','Open user profile for '.$username,'user') : '<span class="user">'.$username.'</span>'; // @@@ #i18n 
     4015                                #$formatted_user = ($this->existsPage($username) && ($link == 1)) ? $this->Link($username,'','','','','Open user profile for '.$username,'user') : '<span class="user">'.$username.'</span>'; // @@@ #i18n 
     4016                                $formatted_user = ($this->existsPage($username) && ((bool) $link)) ? $this->Link($username,'','','','','Open user profile for '.$username,'user') : '<span class="user">'.$username.'</span>'; // @@@ #i18n 
    40074017                        } 
    40084018                        else