![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| mic Sat May 26 17:16:18 2007 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Parse/Creole Url.php Log: removed notices about undefined index http://cvs.php.net/viewvc.cgi/pear/T...&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Parse/Creole/Url.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Creole/Url.php:1.5 pear/Text_Wiki/Text/Wiki/Parse/Creole/Url.php:1.6 --- pear/Text_Wiki/Text/Wiki/Parse/Creole/Url.php:1.5 Thu Mar 1 22:00:30 2007 +++ pear/Text_Wiki/Text/Wiki/Parse/Creole/Url.php Sat May 26 17:16:18 2007 @@ -20,7 +20,7 @@ * * @license LGPL * - * @version $Id: Url.php,v 1.5 2007/03/01 22:00:30 mic Exp $ + * @version $Id: Url.php,v 1.6 2007/05/26 17:16:18 mic Exp $ * */ @@ -66,12 +66,12 @@ function process(&$matches) { - $href = trim($matches[2]); - $text = trim($matches[4]); - $rawurl = $matches[5]; - if (! $href) $href = $rawurl; + if (isset($matches[2])) $href = trim($matches[2]); + if (isset($matches[4])) $text = trim($matches[4]); + if (isset($matches[5])) $rawurl = $matches[5]; + if (empty($href)) $href = $rawurl; - if (! $text) { + if (empty($text)) { $text = $href; $text = str_replace('http://', '', $text); $text = str_replace('mailto:', '', $text); | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: cvs, pear, urlphp |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Url.php | Michele Tomaiuolo | Pear | 0 | 05-27-2007 6:47 PM |
| cvs: pear /PHP_CodeSniffer/CodeSniffer/DocGenerators Text.php | Greg Sherwood | Pear | 0 | 05-27-2007 6:46 PM |
| cvs: pear /PHP_CodeSniffer/CodeSniffer/DocGenerators Text.php | Greg Sherwood | Pear | 0 | 05-27-2007 6:46 PM |
| cvs: pear /Image_Text/Image Text.php | Stoyan Stefanov | Pear | 0 | 05-20-2007 6:42 PM |
| cvs: pear /PHP_CodeSniffer CodeSniffer.php package.xml /PHP_CodeSniffer/CodeSniffer/DocGenerators Generator.php Text.php /PHP_CodeSniffer/CodeSniffer/Standards/PEAR/Docs/NamingConventions ValidClassNameStandard.xml ValidFunctionNameStandard.xml /P | Greg Sherwood | Pear | 0 | 05-20-2007 6:42 PM |
| Featured Websites | ||||
|