add sandbox
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Utils;
|
||||
use Typecho\Common;
|
||||
use Typecho\Db;
|
||||
use Typecho\Exception;
|
||||
use Typecho\Widget\Sandbox;
|
||||
use Widget\Options;
|
||||
use Widget\Themes\Edit;
|
||||
use Widget\Upload;
|
||||
@@ -962,7 +963,10 @@ Typecho_Date::setTimezoneOffset($options->timezone);
|
||||
*/
|
||||
public static function v0_8r10_5_17($db, $options)
|
||||
{
|
||||
Edit::alloc(null, 'change=' . $options->theme, false)->action();
|
||||
Sandbox::factory('change=' . $options->theme)
|
||||
->run(function () {
|
||||
Edit::alloc()->action();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user