Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -34,6 +34,7 @@ class _Upgrade
|
||||
$did = 0;
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
$parser = new \IPS\Text\LegacyParser;
|
||||
|
||||
/* Loop */
|
||||
foreach( \IPS\Db::i()->select( array( 'status_id', 'status_member_id', 'status_content' ), 'core_member_status_updates', array( 'status_imported=?', 1 ), 'status_id', array( $limit, $perCycle ) ) as $row )
|
||||
@@ -48,7 +49,7 @@ class _Upgrade
|
||||
$did++;
|
||||
|
||||
/* Rebuild the content */
|
||||
$content = \IPS\Text\Parser::parseStatic( $row['status_content'], FALSE, NULL, \IPS\Member::load( $row['status_member_id'] ), 'core_Members' );
|
||||
$content = $parser->parser->purify( $row['status_content'] );
|
||||
|
||||
/* Save */
|
||||
\IPS\Db::i()->update( 'core_member_status_updates', array( 'status_content' => $content ), array( 'status_id=?', $row['status_id'] ) );
|
||||
|
||||
Reference in new issue
Block a user