From: Gabriel Wicke Date: Fri, 16 Apr 2004 14:28:03 +0000 (+0000) Subject: \n in " instead of ' X-Git-Tag: 1.3.0beta1~397 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=ad9c9e63644c9a0939c2755424664d99b93d7dee;p=lhc%2Fweb%2Fwiklou.git \n in " instead of ' --- diff --git a/includes/Parser.php b/includes/Parser.php index 3dcc7a53e5..a7347c8498 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -265,7 +265,7 @@ class Parser $ti = $this->mTitle->getText() ; $ti = explode ( ":" , $ti , 2 ) ; if ( $cat != $ti[0] ) return "" ; - $r = '
\n'; + $r = "
\n"; $articles = array() ; $parents = array () ; @@ -1026,19 +1026,18 @@ class Parser if ( ! $linestart ) { $text .= array_shift( $a ); } foreach ( $a as $t ) { $oLine = $t; + $opl = strlen( $lastPref ); $preCloseMatch = preg_match("/<\\/pre/i", $t ); $preOpenMatch = preg_match("/
mInPre) {
 				$this->mInPre = !empty($preOpenMatch);
 			}
 			if ( !$this->mInPre ) {
-				$opl = strlen( $lastPref );
 				$npl = strspn( $t, "*#:;" );
 				$pref = substr( $t, 0, $npl );
 				$pref2 = str_replace( ";", ":", $pref );
 				$t = substr( $t, $npl );
 			} else {
-				$opl = strlen( $lastPref );
 				$npl = 0;
 				$pref = $pref2 = '';
 			}