Project

General

Profile

Feature #14536 » 0000759-class.tslib_fe.php.diff

Administrator Admin, 2005-02-08 06:16

View differences:

class.tslib_fe.php Tue Feb 8 04:55:24 2005
$out = '';
if ($titleChars) {
$out = $this->csConvObj->specCharsToASCII($this->renderCharset, $inTitle);
$out= ereg_replace('[^[:alnum:]_-]','_',trim(substr($out,0,$titleChars)));
$out= ereg_replace('_*$','',$out);
$out= ereg_replace('^_*','',$out);
$substChar = '_';
if (isset($this->config['config']['simulateStaticDocuments_substChar'])) {
$substChar = $this->config['config']['simulateStaticDocuments_substChar'];
}
$substPreserve = '_-';
if (isset($this->config['config']['simulateStaticDocuments_substPreserve'])) {
$substPreserve = $this->config['config']['simulateStaticDocuments_substPreserve'];
}
$pattern = '[^[:alnum:]'.$substPreserve.']';
intval($this->config['config']['simulateStaticDocuments_substConsecutive']) && $pattern .= '+';
$out= ereg_replace($pattern,$substChar,$out);
strlen($substChar) && $out= ereg_replace('^'.substChar.'*','',$out);
$out= trim(substr($out,0,$titleChars));
strlen($substChar) && $out= ereg_replace($substChar.'*$','',$out);
if ($out) $out.='.';
}
$enc = '';
(2-2/2)