1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 14:23:05 +02:00

Bump version to 3.0.122 plus some other minor adjustments

This commit is contained in:
Ryan Cramer
2018-12-14 14:24:50 -05:00
parent a89543944d
commit 1b059b0ced
4 changed files with 28 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ class ProcessWire extends Wire {
* Reversion revision number
*
*/
const versionRevision = 121;
const versionRevision = 122;
/**
* Version suffix string (when applicable)

View File

@@ -90,7 +90,7 @@ class InputfieldCheckbox extends Inputfield {
$attrs['value'] = $this->checkedValue;
if($this->getSetting('entityEncodeLabel') !== false) {
$label = $this->entityEncode($label);
$label = $this->entityEncode($label, Inputfield::textFormatBasic);
}
$out =

View File

@@ -24,6 +24,14 @@ class InputfieldSubmit extends Inputfield {
);
}
/**
* Names of submit buttons created
*
* @var array
*
*/
protected static $submitNames = array();
/**
* Additional dropdown actions added to the button
*
@@ -64,6 +72,11 @@ class InputfieldSubmit extends Inputfield {
return parent::get($key);
}
public function setAttribute($key, $value) {
if($key === 'name') self::$submitNames[$value] = $value;
return parent::setAttribute($key, $value);
}
/**
* Show another copy of this button in the header?
*
@@ -263,4 +276,14 @@ class InputfieldSubmit extends Inputfield {
$this->addActionItem('link', $url, $label, $icon);
}
/**
* #pw-internal
*
* @return array()
*
*/
static public function getSubmitNames() {
return self::$submitNames;
}
}

View File

@@ -536,7 +536,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
* Set a Lister session variable
*
* @param string $key
* @param string|int $value
* @param string|int|array $value
*
*/
public function sessionSet($key, $value) {
@@ -549,7 +549,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
* Get a Lister session variable
*
* @param string $key
* @return string|int|null
* @return string|int|array|null
*
*/
public function sessionGet($key) {