mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
initial import
This commit is contained in:
33
lib/classes/patch/311.class.php
Normal file
33
lib/classes/patch/311.class.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
class patch_311 implements patch
|
||||
{
|
||||
|
||||
private $release = '3.1.1';
|
||||
private $concern = array('data_box');
|
||||
|
||||
function get_release()
|
||||
{
|
||||
return $this->release;
|
||||
}
|
||||
|
||||
function concern()
|
||||
{
|
||||
return $this->concern;
|
||||
}
|
||||
|
||||
function apply($id)
|
||||
{
|
||||
|
||||
$connbas = connection::getInstance($id);
|
||||
|
||||
if (!$connbas || !$connbas->isok())
|
||||
return false;
|
||||
|
||||
$sql = 'UPDATE record SET jeton=' . (JETON_WRITE_META_DOC | JETON_WRITE_META_SUBDEF) . '';
|
||||
$connbas->query($sql);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user