1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 06:13:57 +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 * Reversion revision number
* *
*/ */
const versionRevision = 121; const versionRevision = 122;
/** /**
* Version suffix string (when applicable) * Version suffix string (when applicable)

View File

@@ -90,7 +90,7 @@ class InputfieldCheckbox extends Inputfield {
$attrs['value'] = $this->checkedValue; $attrs['value'] = $this->checkedValue;
if($this->getSetting('entityEncodeLabel') !== false) { if($this->getSetting('entityEncodeLabel') !== false) {
$label = $this->entityEncode($label); $label = $this->entityEncode($label, Inputfield::textFormatBasic);
} }
$out = $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 * Additional dropdown actions added to the button
* *
@@ -63,7 +71,12 @@ class InputfieldSubmit extends Inputfield {
if($key == 'secondary') return $this->hasClass('ui-priority-secondary'); if($key == 'secondary') return $this->hasClass('ui-priority-secondary');
return parent::get($key); 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? * Show another copy of this button in the header?
* *
@@ -263,4 +276,14 @@ class InputfieldSubmit extends Inputfield {
$this->addActionItem('link', $url, $label, $icon); $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 * Set a Lister session variable
* *
* @param string $key * @param string $key
* @param string|int $value * @param string|int|array $value
* *
*/ */
public function sessionSet($key, $value) { public function sessionSet($key, $value) {
@@ -549,7 +549,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
* Get a Lister session variable * Get a Lister session variable
* *
* @param string $key * @param string $key
* @return string|int|null * @return string|int|array|null
* *
*/ */
public function sessionGet($key) { public function sessionGet($key) {