streams/Code/Update/_1228.php

23 lines
380 B
PHP
Raw Normal View History

2019-02-28 23:14:22 +00:00
<?php
2022-02-16 04:08:28 +00:00
namespace Code\Update;
2019-02-28 23:14:22 +00:00
2022-02-16 04:08:28 +00:00
use Code\Lib\PConfig;
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
class _1228
{
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
public function run()
{
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
$r = q("select channel_id from channel where true");
if ($r) {
foreach ($r as $rv) {
PConfig::Set($rv['channel_id'], 'perm_limits', 'moderated', (string)PERMS_SPECIFIC);
}
}
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
return UPDATE_SUCCESS;
}
2019-02-28 23:14:22 +00:00
}