Revision 1983
Added by Dietmar about 11 years ago
functions.php | ||
---|---|---|
50 | 50 |
continue; |
51 | 51 |
} |
52 | 52 |
} |
53 |
clearstatcache(); |
|
53 | 54 |
return true; |
54 | 55 |
} |
55 | 56 |
return false; |
... | ... | |
1452 | 1453 |
{ |
1453 | 1454 |
$oDb = WbDatabase::getInstance(); |
1454 | 1455 |
$oReg = WbAdaptor::getInstance(); |
1456 |
$aRetval = array(); |
|
1455 | 1457 |
// try to remove access files and build new folder protect files |
1456 | 1458 |
$sTreeToDelete = $oReg->AppPath.$oReg->PagesDir; |
1459 |
|
|
1457 | 1460 |
if(($sTreeToDelete!='') && is_writeable($sTreeToDelete)==true) |
1458 | 1461 |
{ |
1459 | 1462 |
$aDeleteLog = array(); |
... | ... | |
1461 | 1464 |
// show details if debug is set |
1462 | 1465 |
if($bShowDetails) { $aRetval = $aDeleteLog; } |
1463 | 1466 |
} |
1464 |
// set logging informations |
|
1465 |
$aRetval = array_merge((isset($aRetval) ? $aRetval : array()), |
|
1466 |
createFolderProtectFile(rtrim( $oReg->AppPath.$oReg->PagesDir, '/') )); |
|
1467 | 1467 |
// Reformat/rebuild all existing access files |
1468 | 1468 |
$sql = 'SELECT `page_id`,`root_parent`,`parent`,`link`,`level`,`page_trail` ' |
1469 | 1469 |
. 'FROM `'.$oDb->TablePrefix.'pages` ' |
Also available in: Unified diff
! /framework/class.wb.php::getLanguagesDetailsInUsed() optimized
+ /framework/class.wb.php::getAvailableLanguagesObjectInstance()
! /framework/class.wb.php::getLanguagesInUsed() method optimized
! /framework/class.frontend.php update changes made in class.wb.php
! /framework/functions.php::rebuild_all_accessfiles() is no longer creating FolderProtectFiles