mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Merge branch 'phutil_tag'
This commit is contained in:
commit
0a08951a7c
3 changed files with 16 additions and 8 deletions
|
@ -63,7 +63,7 @@ final class DifferentialChangesetParser {
|
|||
return $this->disableCache;
|
||||
}
|
||||
|
||||
const CACHE_VERSION = 10;
|
||||
const CACHE_VERSION = 11;
|
||||
const CACHE_MAX_SIZE = 8e6;
|
||||
|
||||
const ATTR_GENERATED = 'attr:generated';
|
||||
|
@ -270,7 +270,13 @@ final class DifferentialChangesetParser {
|
|||
return false;
|
||||
}
|
||||
|
||||
$data = json_decode($data['cache'], true);
|
||||
if ($data['cache'][0] == '{') {
|
||||
// This is likely an old-style JSON cache which we will not be able to
|
||||
// deserialize.
|
||||
return false;
|
||||
}
|
||||
|
||||
$data = unserialize($data['cache']);
|
||||
if (!is_array($data) || !$data) {
|
||||
return false;
|
||||
}
|
||||
|
@ -340,7 +346,7 @@ final class DifferentialChangesetParser {
|
|||
break;
|
||||
}
|
||||
}
|
||||
$cache = json_encode($cache);
|
||||
$cache = serialize($cache);
|
||||
|
||||
// We don't want to waste too much space by a single changeset.
|
||||
if (strlen($cache) > self::CACHE_MAX_SIZE) {
|
||||
|
|
|
@ -21,7 +21,7 @@ abstract class DifferentialChangesetHTMLRenderer
|
|||
return null;
|
||||
}
|
||||
} else {
|
||||
$none = $none;
|
||||
$none = hsprintf('');
|
||||
switch ($change) {
|
||||
|
||||
case DifferentialChangeType::TYPE_ADD:
|
||||
|
|
|
@ -168,10 +168,12 @@ final class PhabricatorProjectProfileEditController
|
|||
->setLabel(pht('Blurb'))
|
||||
->setName('blurb')
|
||||
->setValue($profile->getBlurb()))
|
||||
->appendChild('<p class="aphront-form-instructions">'.
|
||||
pht('NOTE: Policy settings are not yet fully implemented. '.
|
||||
'Some interfaces still ignore these settings, '.
|
||||
'particularly "Visible To".').'</p>')
|
||||
->appendChild(hsprintf(
|
||||
'<p class="aphront-form-instructions">%s</p>',
|
||||
pht(
|
||||
'NOTE: Policy settings are not yet fully implemented. '.
|
||||
'Some interfaces still ignore these settings, '.
|
||||
'particularly "Visible To".')))
|
||||
->appendChild(
|
||||
id(new AphrontFormPolicyControl())
|
||||
->setUser($user)
|
||||
|
|
Loading…
Reference in a new issue