/[drupal]/contributions/theme-engines/phptemplate/phptemplate.engine
ViewVC logotype

Diff of /contributions/theme-engines/phptemplate/phptemplate.engine

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.24.2.3, Thu May 12 20:24:19 2005 UTC revision 1.24.2.4, Wed Jul 27 10:07:42 2005 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: phptemplate.engine,v 1.24.2.2 2005/05/12 20:13:59 adrian Exp $  // $Id: phptemplate.engine,v 1.24.2.3 2005/05/12 20:24:19 adrian Exp $
3    
4  function phptemplate_init($template) {  function phptemplate_init($template) {
5    require_once(realpath('themes/engines/phptemplate/template.php'));    require_once(realpath('themes/engines/phptemplate/template.php'));
# Line 182  function phptemplate_page($content) { Line 182  function phptemplate_page($content) {
182            $text = $value['text'][$i];            $text = $value['text'][$i];
183            $link = $value['link'][$i];            $link = $value['link'][$i];
184            if (substr($link, 0, 4) == 'http') {            if (substr($link, 0, 4) == 'http') {
185              $links[$type][] = '<a href="'. $link .'"'. drupal_attributes($attributes) .'>'. $text .'</a>';              $links[$type][$link] = '<a href="'. $link .'"'. drupal_attributes($attributes) .'>'. $text .'</a>';
186            }            }
187            else {            else {
188              $links[$type][] = l($text, $link, $attributes);              $links[$type][$link] = l($text, $link, $attributes);
189            }            }
190          }          }
191        }        }

Legend:
Removed from v.1.24.2.3  
changed lines
  Added in v.1.24.2.4

  ViewVC Help
Powered by ViewVC 1.1.2