Revision 1985
Added by Dietmar about 11 years ago
upgrade.php | ||
---|---|---|
188 | 188 |
$sql .= 'WHERE `published_when`=0 OR `published_when`>`posted_when`'; |
189 | 189 |
$database->query($sql); |
190 | 190 |
// ************************************************ |
191 |
$aReport = array('FilesDeleted'=>0,'FilesCreated'=>0,); |
|
192 |
$sModulReorg = 'm_news_Reorg'; |
|
193 |
if( !$globalStarted && class_exists($sModulReorg) ) { |
|
194 |
$oReorg = new $sModulReorg($sModulReorg::LOG_EXTENDED); |
|
195 |
$aReturnMsg = $oReorg->execute(); // show details |
|
196 |
$aReport = $oReorg->getReport(); |
|
197 |
unset($oReorg); |
|
198 |
} |
|
191 | 199 |
|
192 | 200 |
// only for upgrade-script |
193 | 201 |
if($globalStarted) { |
... | ... | |
196 | 204 |
} |
197 | 205 |
} |
198 | 206 |
} |
199 |
$msg[] = "News upgrade successfull finished $OK"; |
|
207 |
|
|
208 |
// $msg[] = '<strong>'.$aReport['FilesDeleted'].' Files successful deleted</strong>'; |
|
209 |
$msg[] = '<strong>Number of new formated access files: '.$aReport['FilesCreated'].'</strong>'; |
|
210 |
$msg[] = "<strong>News upgrade successfull finished</strong>"; |
|
200 | 211 |
if($globalStarted) { |
201 | 212 |
echo "<strong>News upgrade successfull finished $OK</strong><br />"; |
202 | 213 |
} |
... | ... | |
207 | 218 |
// end mod_news_Upgrade |
208 | 219 |
|
209 | 220 |
// ------------------------------------ |
210 |
// only show if manuell upgrade
|
|
221 |
// Don't show the messages twice
|
|
211 | 222 |
$bDebugModus = ((isset($bDebugModus)) ? $bDebugModus : false); |
212 |
// Don't show the messages twice |
|
213 | 223 |
if( is_array($msg = mod_news_Upgrade($bDebugModus)) ) { |
214 |
$sModulReorg = 'm_news_Reorg'; |
|
215 |
if(class_exists($sModulReorg)) { |
|
216 |
$oReorg = new $sModulReorg(); |
|
217 |
$msg = array_merge($msg, $oReorg->execute() ); // show details |
|
218 |
} |
|
219 |
echo '<strong>'.implode('<br />',$msg).'</strong><br />'; |
|
224 |
// only show if manuell upgrade |
|
225 |
echo ''.implode('<br />',$msg).'<br />'; |
|
220 | 226 |
} |
221 | 227 |
/* **** END UPGRADE ********************************************************* */ |
Also available in: Unified diff
! /modules/news/Reorg.php completely recoded using class AccessFile()
! /modules/news/upgrade.php add accessfile report to output details in upgrade-script.php
! /modules/news/save_post.php search for missing accessfile folder and create missing one