Changeset 1804
- Timestamp:
- 09/05/2011 09:14:46 AM (22 months ago)
- Files:
-
- 1 modified
-
trunk/libs/Wakka.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/Wakka.class.php
r1792 r1804 2629 2629 * @param string $title optional: 2630 2630 * @param string $class optional: 2631 * @param boolean $assumePageExists optional: 2631 2632 * @return string an HTML hyperlink (a href) element 2632 2633 * @todo move regexps to regexp-library #34 2633 2634 */ 2634 function Link($tag, $handler='', $text='', $track=TRUE, $escapeText=TRUE, $title='', $class='' )2635 function Link($tag, $handler='', $text='', $track=TRUE, $escapeText=TRUE, $title='', $class='', $assumePageExists=TRUE) 2635 2636 { 2636 2637 // init … … 2689 2690 $this->TrackLinkTo($tag); 2690 2691 } 2691 if (!$ this->existsPage($tag))2692 if (!$assumePageExists && !$this->existsPage($tag)) 2692 2693 { 2693 2694 $link = '<a class="missingpage" href="'.$this->Href('edit', $tag).'" title="'.T_("Create this page").'">'.$text.'</a>';