cvs: pres2 / display.php

From: Date: Mon, 17 Apr 2006 00:44:47 +0000
Subject: cvs: pres2 / display.php
Groups: php.pres 
Request: Send a blank email to pres+get-1276@lists.php.net to get a copy of this message
rasmus Mon Apr 17 00:44:47 2006 UTC Modified files: /pres2 display.php Log: Only do it when the example text is inlined http://cvs.php.net/viewcvs.cgi/pres2/display.php?r1=1.35&r2=1.36&diff_format=u Index: pres2/display.php diff -u pres2/display.php:1.35 pres2/display.php:1.36 --- pres2/display.php:1.35 Mon Apr 17 00:02:07 2006 +++ pres2/display.php Mon Apr 17 00:44:47 2006 @@ -370,7 +370,7 @@ // variables so we don't get run over function _example(&$example) { global $pres; - $example->text = preg_replace('/:-:(.*?):-:/e','$this->pres->\\1',$example->text); + if(empty($example->filename)) $example->text = preg_replace('/:-:(.*?):-:/e','$this->pres->\\1',$example->text); $_html_effect = ''; if($example->effect) $_html_effect = "effect=\"$example->effect\"";

« previous php.pres (#1276) next »