component/admin/models/packagefile.php 1 location
|
@@ 423-428 (lines=6) @@
|
| 420 |
|
$ftp = JClientHelper::getCredentials('ftp'); |
| 421 |
|
|
| 422 |
|
// Try to make the file writeable. |
| 423 |
|
if (JFile::exists($path) && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644')) |
| 424 |
|
{ |
| 425 |
|
$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_WRITABLE', $path)); |
| 426 |
|
|
| 427 |
|
return false; |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
// Make the XML look pretty |
| 431 |
|
$dom->formatOutput = true; |
component/admin/models/language.php 1 location
|
@@ 405-410 (lines=6) @@
|
| 402 |
|
$ftp = JClientHelper::getCredentials('ftp'); |
| 403 |
|
|
| 404 |
|
// Try to make the file writeable. |
| 405 |
|
if ($exists && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644')) |
| 406 |
|
{ |
| 407 |
|
$this->setError(JText::sprintf('COM_LOCALISE_ERROR_LANGUAGE_WRITABLE', $path)); |
| 408 |
|
|
| 409 |
|
return false; |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
$return = JFile::write($path, $text); |
| 413 |
|
|
component/admin/models/package.php 1 location
|
@@ 433-438 (lines=6) @@
|
| 430 |
|
$ftp = JClientHelper::getCredentials('ftp'); |
| 431 |
|
|
| 432 |
|
// Try to make the file writeable. |
| 433 |
|
if (JFile::exists($path) && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644')) |
| 434 |
|
{ |
| 435 |
|
$this->setError(JText::sprintf('COM_LOCALISE_ERROR_PACKAGE_WRITABLE', $path)); |
| 436 |
|
|
| 437 |
|
return false; |
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
// Make the XML look pretty |
| 441 |
|
$dom->formatOutput = true; |
component/admin/models/translation.php 1 location
|
@@ 1187-1192 (lines=6) @@
|
| 1184 |
|
$ftp = JClientHelper::getCredentials('ftp'); |
| 1185 |
|
|
| 1186 |
|
// Try to make the file writeable. |
| 1187 |
|
if ($exists && !$ftp['enabled'] && JPath::isOwner($path) && !JPath::setPermissions($path, '0644')) |
| 1188 |
|
{ |
| 1189 |
|
$this->setError(JText::sprintf('COM_LOCALISE_ERROR_TRANSLATION_WRITABLE', $path)); |
| 1190 |
|
|
| 1191 |
|
return false; |
| 1192 |
|
} |
| 1193 |
|
|
| 1194 |
|
if (array_key_exists('source', $data)) |
| 1195 |
|
{ |