mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Bump version to 3.0.146
This commit is contained in:
@@ -161,7 +161,7 @@ class Fields extends WireSaveableItems {
|
||||
* @param array $a Associative array of data to populate
|
||||
* @return Saveable|Wire
|
||||
* @throws WireException
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
public function makeItem(array $a = array()) {
|
||||
|
@@ -820,7 +820,7 @@ abstract class Fieldtype extends WireData implements Module {
|
||||
*
|
||||
* @param array $a Field data from DB (if needed)
|
||||
* @return string Return class name or blank to use default Field class
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
public function getFieldClass(array $a = array()) {
|
||||
|
@@ -1221,7 +1221,7 @@ function wireRegion($key, $value = null) {
|
||||
*
|
||||
* @param string $message Optional message to send to Exception message argument (not used in output by default)
|
||||
* @throws Wire404Exception
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
function wire404($message = '') {
|
||||
|
@@ -1592,7 +1592,7 @@ class Modules extends WireArray {
|
||||
* - Boolean false to return array of module names (default).
|
||||
* - Integer 1 to return array of module info for each matching module.
|
||||
* - Integer 2 to return array of verbose module info for each matching module.
|
||||
* - Integer 3 to return array of Module or ModulePlaceholder objects (whatever current state is). Added 3.0.147.
|
||||
* - Integer 3 to return array of Module or ModulePlaceholder objects (whatever current state is). Added 3.0.146.
|
||||
* @return array Returns array of module class names or Module objects. In either case, array indexes are class names.
|
||||
*
|
||||
*/
|
||||
|
@@ -77,7 +77,7 @@ abstract class Notice extends WireData {
|
||||
/**
|
||||
* Indicate notice should not group/collapse with others of the same type (when supported by admin theme)
|
||||
*
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
const noGroup = 131072;
|
||||
|
@@ -848,7 +848,7 @@ class Pages extends Wire {
|
||||
*
|
||||
* @param Page|PageArray|array $pages May be Page, PageArray or array of page IDs (integers).
|
||||
* @param null|int|string $time Omit (null) to update to now, or specify unix timestamp or strtotime() recognized time string
|
||||
* @param string $type Date type to update, one of 'modified', 'created' or 'published' (default='modified') Added 3.0.147
|
||||
* @param string $type Date type to update, one of 'modified', 'created' or 'published' (default='modified') Added 3.0.146
|
||||
* @throws WireException|\PDOException if given invalid format for $modified argument or failed database query
|
||||
* @return bool True on success, false on fail
|
||||
* @since 3.0.0
|
||||
|
@@ -924,7 +924,7 @@ class PagesEditor extends Wire {
|
||||
* @param Page $page
|
||||
* @param int $status Use Page::status* constants
|
||||
* @return bool
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
* @see PagesEditor::setStatus(), PagesEditor::removeStatus()
|
||||
*
|
||||
*/
|
||||
@@ -942,7 +942,7 @@ class PagesEditor extends Wire {
|
||||
* @param Page $page
|
||||
* @param int $status Use Page::status* constants
|
||||
* @return bool
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
* @see PagesEditor::setStatus(), PagesEditor::addStatus(), PagesEditor::saveStatus()
|
||||
*
|
||||
*/
|
||||
@@ -958,7 +958,7 @@ class PagesEditor extends Wire {
|
||||
*
|
||||
* @param Page $page
|
||||
* @return bool
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
public function saveStatus(Page $page) {
|
||||
|
@@ -276,6 +276,8 @@ class PaginatedArray extends WireArray implements WirePaginatable {
|
||||
$limit = $options['limit'] > -1 ? $options['limit'] : $this->getLimit();
|
||||
$total = $options['total'] > -1 ? $options['total'] : $this->getTotal();
|
||||
|
||||
if($count > $total) $total = $count;
|
||||
|
||||
if(empty($total) && !empty($options['zeroLabel'])) {
|
||||
|
||||
$str = $options['zeroLabel'];
|
||||
|
@@ -46,7 +46,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 145;
|
||||
const versionRevision = 146;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -48,7 +48,7 @@ abstract class WireSaveableItems extends Wire implements \IteratorAggregate {
|
||||
* @param array $a Associative array of data to populate
|
||||
* @return Saveable|Wire
|
||||
* @throws WireException
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
public function makeItem(array $a = array()) {
|
||||
|
@@ -207,7 +207,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
||||
*
|
||||
* @param array $a Field data from DB (if needed)
|
||||
* @return string Return class name or blank to use default Field class
|
||||
* @since 3.0.147
|
||||
* @since 3.0.146
|
||||
*
|
||||
*/
|
||||
public function getFieldClass(array $a = array()) {
|
||||
|
Reference in New Issue
Block a user