Project

General

Profile

« Previous | Next » 

Revision 1881

Added by Dietmar over 11 years ago

  1. bugfix setting slash in class m_news_Reorg ( access files in root)
    ! upgrade-script shows count of created module access files

View differences:

branches/2.8.x/CHANGELOG
12 12
===============================================================================
13 13

  
14 14

  
15
05 Mar-2013 Build 1881 Dietmar Woellbrink (Luisehahne)
16
# bugfix setting slash in class m_news_Reorg ( access files in root)
17
! upgrade-script shows count of created module access files
15 18
05 Mar-2013 Build 1880 Dietmar Woellbrink (Luisehahne)
16 19
# bugfix missing slash in class m_news_Reorg
17 20
05 Mar-2013 Build 1879 Werner v.d.Decken(DarkViper)
branches/2.8.x/wb/upgrade-script.php
1045 1045
				echo '<h4>'.'Create/Reorg Accesfiles for module \''.$sModul.'\' version '.$sModulVersion.'</h4>';
1046 1046
				$oReorg = new $sModulReorg();
1047 1047
				$aReturnMsg = $oReorg->execute(); // show details
1048
				if($bDebugModus && is_array($aReturnMsg)) {
1048
				if(is_array($aReturnMsg)) {
1049 1049
					foreach($aReturnMsg as $title) {
1050 1050
					echo '<strong>'.$title.'</strong><br />';
1051 1051
					}
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1880');
54
if(!defined('REVISION')) define('REVISION', '1881');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/modules/news/Reorg.php
48 48
		if(class_exists('WbAdaptor')) {
49 49
			$this->_oReg = WbAdaptor::getInstance();
50 50
			$sTmp = trim($this->_oReg->PagesDir, '/');
51
			$sTmp = ($sTmp == '' ? '' : $sTmp);
51
			$sTmp = ($sTmp == '' ? '' : $sTmp.'/');
52 52
			$this->_sPagesDir = $sTmp;
53 53
			$sOutput = $this->createAccessFiles();
54 54
		}
......
70 70
			while($aPost = $oPosts->fetchRow(MYSQL_ASSOC))
71 71
			{
72 72
				$sAccessFile = $this->_oReg->AppPath.$this->_sPagesDir
73
				               . rtrim(str_replace('\\', '/', $aPost['link']), '/')
73
				               . trim(str_replace('\\', '/', $aPost['link']), '/')
74 74
				               . $this->_oReg->PageExtension;
75 75
				$aOptionalCommand = array(
76 76
					'$section_id   = '.$aPost['section_id'].';',

Also available in: Unified diff