Ubiquity/controllers/Startup.php 1 location
|
@@ 252-260 (lines=9) @@
|
| 249 |
|
return self::$config; |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
public static function saveConfig($content){ |
| 253 |
|
$appDir=\dirname ( ROOT ); |
| 254 |
|
$filename=$appDir."/app/config/config.php"; |
| 255 |
|
$oldFilename=$appDir."/app/config/config.old.php"; |
| 256 |
|
if (!file_exists($filename) || copy($filename, $oldFilename)) { |
| 257 |
|
return UFileSystem::save($filename,$content); |
| 258 |
|
} |
| 259 |
|
return false; |
| 260 |
|
} |
| 261 |
|
} |
| 262 |
|
|
Ubiquity/controllers/traits/StartupConfigTrait.php 1 location
|
@@ 81-89 (lines=9) @@
|
| 78 |
|
return self::$config; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public static function saveConfig($content){ |
| 82 |
|
$appDir=\dirname ( ROOT ); |
| 83 |
|
$filename=$appDir."/app/config/config.php"; |
| 84 |
|
$oldFilename=$appDir."/app/config/config.old.php"; |
| 85 |
|
if (!file_exists($filename) || copy($filename, $oldFilename)) { |
| 86 |
|
return UFileSystem::save($filename,$content); |
| 87 |
|
} |
| 88 |
|
return false; |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
|