Revision 1982
Added by darkviper about 11 years ago
AccessFile.php | ||
---|---|---|
102 | 102 |
} |
103 | 103 |
} |
104 | 104 |
|
105 |
/**
|
|
106 |
* Write the accessfile
|
|
107 |
* @throws AccessFileException
|
|
108 |
*/
|
|
105 |
/** |
|
106 |
* Write the accessfile |
|
107 |
* @throws AccessFileException |
|
108 |
*/ |
|
109 | 109 |
public function write() |
110 | 110 |
{ |
111 | 111 |
// remove AppPath from File for use in error messages |
... | ... | |
146 | 146 |
// prepare old/new file-/dirname |
147 | 147 |
$sOldFilename = $this->_sFileName; |
148 | 148 |
$sOldSubDirname = dirname($sOldFilename) . '/'; |
149 |
$sBaseDirname = dirname($sOldSubDirname) . '/'; |
|
150 | 149 |
$sPattern = '/^(' . preg_quote($sOldSubDirname, '/') . ')([^\/\.]+?)(\.[a-z0-9]+)$/siU'; |
151 | 150 |
$sNewFilename = preg_replace($sPattern, '\1' . $sNewName . '\3', $sOldFilename); |
152 | 151 |
$sNewSubDirname = dirname($sNewFilename) . '/'; |
Also available in: Unified diff
/framework/AccessFile little Typofixes
/framework/AccessFileHelper added new method getDelTreeLog() and add const LOG_PRESERVE and LOG_CLEAR
set WbAdaptor::AppName to 'WebsiteBaker'