Revision 341
Added by stefan over 19 years ago
| install.php | ||
|---|---|---|
| 26 | 26 |
if(defined('WB_URL')) {
|
| 27 | 27 |
|
| 28 | 28 |
// Set the filename of the actual editor file |
| 29 |
$editor_file = $module_dir.'/htmlarea.zip'; |
|
| 29 |
$editor_file = $module_directory.'/htmlarea.zip';
|
|
| 30 | 30 |
|
| 31 | 31 |
if(file_exists($editor_file)) {
|
| 32 | 32 |
|
| ... | ... | |
| 34 | 34 |
$editor_archive = new PclZip($editor_file); |
| 35 | 35 |
|
| 36 | 36 |
// Unzip to module dir |
| 37 |
$list = $editor_archive->extract(PCLZIP_OPT_PATH, $module_dir); |
|
| 37 |
$list = $editor_archive->extract(PCLZIP_OPT_PATH, $module_directory);
|
|
| 38 | 38 |
if(!$list) {
|
| 39 | 39 |
$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNZIP']); |
| 40 | 40 |
} |
| ... | ... | |
| 42 | 42 |
if(file_exists($editor_file)) { unlink($editor_file); }
|
| 43 | 43 |
|
| 44 | 44 |
// Chmod all the editors files |
| 45 |
chmod_directory_contents($module_dir.'/htmlarea', OCTAL_FILE_MODE); |
|
| 45 |
chmod_directory_contents($module_directory.'/htmlarea', OCTAL_FILE_MODE);
|
|
| 46 | 46 |
|
| 47 | 47 |
} |
| 48 | 48 |
|
Also available in: Unified diff
Changed to in htmlarea install script. Fixes obscure bug.