Skip to content
Permalink
Browse files

Bit of speel cheking

  • Loading branch information...
Bloke committed Feb 25, 2019
1 parent e79f845 commit 573cf200d21354c01cc7a836cd4b7e7f56b555d5
@@ -3,6 +3,7 @@ Changes in 4.7.3 (upcoming)
* Fixed: 'Export to disk' checkbox state inconsistencies for new assets.
* Fixed: Logout issue in Classic admin theme.
* Fixed: a bug when PHP 'mbstring' extension is disabled.
* Fixed: Prevent Alt+s from triggering save.
* Changed: Permit falling back on pophelp in 'lang' database table.
* Added: <txp:yield /> values are available in external forms too.
* Added: Latest translations.
@@ -32,15 +33,15 @@ Changes in 4.7.2
pages.
* Changed: Extended fallback to 'C' locale in some situations.
* Changed: Partially translated inline help files use fallback language (by
default: English) where localized help items are not present.
default: English) where localised help items are not present.
* Changed: Hive admin theme login panel now displays link to public site.
* Changed: Simplified Classic admin theme login panel layout.
* Changed: Fine-grained development theme preview.
* Changed: More customizable Atom/RSS feeds via 'atom_head', 'rss_head' and
'feed_filter' callbacks.
* Changed: Deleting an article deletes any associated comments.
* Changed: Forms, Pages and Styles accept pre-4.7 names for editing, but
must be sanitized prior to saving.
must be sanitised prior to saving.
* Changed: Some emoji are preserved in automatically-generated article URL
titles.
* Changed: Article text blocks starting with a Textpattern tag are not
@@ -84,7 +85,7 @@ Changes in 4.7.1
* Fixed: Section page/style selectors are correctly populated.
* Fixed: Articles without a URL-only title have a valid permlink across all
link formats.
* Changed: Additional code optimization for PHP 5.4 and later.
* Changed: Additional code optimisation for PHP 5.4 and later.
* Changed: Improved language string coverage in setup process.
* Changed: Extended use of Textpattern 4.7.*-native tags in Four Point Seven
theme.
@@ -207,7 +208,7 @@ Changes in 4.7.0
* Changed: More locale-aware date handling in safe_strftime().
* Changed: Deprecated support for uploading .swf files via Images panel (support
will be removed entirely at Textpattern 4.8.0).
* Changed: Extensive admin theme image optimizations.
* Changed: Extensive admin theme image optimisations.
* Changed: Admin theme accessibility improvements.
* Changed: Admin theme layout improvements on small devices.
* Changed: Pagination and search added to Plugins panel.
@@ -449,7 +450,7 @@ Changes in 4.5.2
different time zones.
* Avoid "undefined variable" error while bulk-editing form types.
* Developer: Use actual callback instead of hard-coded function to render
'View'link. Pass reference to partials meta data into partial callbacks as
'View' link. Pass reference to partials meta data into partial callbacks as
$rs['partials_meta'].
* Developer: Escape '<script>' tags in script_js(). Use jQuery in dom_attach().

@@ -988,7 +989,7 @@ Changes in 4.0.3:
loading at window.onload, useful for admin side plugins.
* Improve MySQL 5 compatibility.
* Add comment edit link to notification emails.
* Make comment-time format customizable in tag (mary).
* Make comment-time format customisable in tag (mary).
* Add offset-attribute to file_download_list (mary).
* Make older, newer and link_to_home work more consistantly with other nav-tags
(mary).
@@ -392,7 +392,7 @@ function article_edit($message = '', $concurrent = false, $refresh_partials = fa
'mode' => {PARTIAL_STATIC | PARTIAL_VOLATILE | PARTIAL_VOLATILE_VALUE},
'selector' => $DOM_selector or array($selector, $fragment) of $DOM_selectors,
'cb' => $callback_function,
'html' => $return_value_of_callback_function (need not be intialised here)
'html' => $return_value_of_callback_function (need not be initialised here)
)
*/
$partials = array(
@@ -284,7 +284,7 @@ function cat_category_multiedit()
$things = ps('selected');
if (is_array($things) and $things and in_array($type, array('article', 'image', 'link', 'file'))) {
// Fetch selected ites and remove bogus (false) entries to prevent SQL syntax errors.
// Fetch selected items and remove bogus (false) entries to prevent SQL syntax errors.
$things = array_map('assert_int', $things);
$things = array_filter($things);
@@ -316,7 +316,7 @@ function cat_category_multiedit()
safe_update('txp_'.$type, "category = ''", "category IN ('$affected')");
}
// Promote subcatagories of deleted catagories to root.
// Promote subcategories of deleted categories to root.
safe_update('txp_category', "parent = 'root'", "parent IN ('$affected')");
}
@@ -127,7 +127,7 @@ function css_edit($message = '', $refresh_partials = false)
'mode' => {PARTIAL_STATIC | PARTIAL_VOLATILE | PARTIAL_VOLATILE_VALUE},
'selector' => $DOM_selector or array($selector, $fragment) of $DOM_selectors,
'cb' => $callback_function,
'html' => $return_value_of_callback_function (need not be intialised here)
'html' => $return_value_of_callback_function (need not be initialised here)
)
*/
$partials = array(
@@ -212,7 +212,7 @@ function css_edit($message = '', $refresh_partials = false)
(!is_writable($instance->getDirPath()) ? '' :
span(
checkbox2('export', gps('export'), 0, 'export').
n.tag(gtxt('export_to_disk'), 'label', array('for' => 'export'))
n.tag(gTxt('export_to_disk'), 'label', array('for' => 'export'))
, array('class' => 'txp-save-export'))
).n.
tag_void('input', array(
@@ -264,7 +264,7 @@ function css_edit($message = '', $refresh_partials = false)
)
);
// Styles code columm.
// Styles code column.
echo n.tag(
form(
$actions.
@@ -124,7 +124,7 @@ function form_list($current)
if ($rs) {
$prev_type = null;
// Add a hidden field, in case only one skin is in use and mult-edit is the
// Add a hidden field, in case only one skin is in use and multi-edit is the
// first action performed. This way, the value is propagated and saved, even
// if the skin select list is not rendered or a Form is not saved first.
$out[] = hInput('skin', $current['skin']);
@@ -255,7 +255,7 @@ function form_edit($message = '', $refresh_partials = false)
'mode' => {PARTIAL_STATIC | PARTIAL_VOLATILE | PARTIAL_VOLATILE_VALUE},
'selector' => $DOM_selector or array($selector, $fragment, $script) of $DOM_selectors,
'cb' => $callback_function,
'html' => $return_value_of_callback_function (need not be intialised here)
'html' => $return_value_of_callback_function (need not be initialised here)
)
*/
$partials = array(
@@ -353,7 +353,7 @@ function form_edit($message = '', $refresh_partials = false)
(!is_writable($instance->getDirPath()) ? '' :
span(
checkbox2('export', gps('export'), 0, 'export').
n.tag(gtxt('export_to_disk'), 'label', array('for' => 'export'))
n.tag(gTxt('export_to_disk'), 'label', array('for' => 'export'))
, array('class' => 'txp-save-export'))
).
n.tag_void('input', array(
@@ -417,7 +417,7 @@ function form_edit($message = '', $refresh_partials = false)
)
);
// Forms code columm.
// Forms code column.
echo n.tag(
form(
$actions.
@@ -90,7 +90,7 @@ function page_edit($message = '', $refresh_partials = false)
'mode' => {PARTIAL_STATIC | PARTIAL_VOLATILE | PARTIAL_VOLATILE_VALUE},
'selector' => $DOM_selector or array($selector, $fragment) of $DOM_selectors,
'cb' => $callback_function,
'html' => $return_value_of_callback_function (need not be intialised here)
'html' => $return_value_of_callback_function (need not be initialised here)
)
*/
$partials = array(
@@ -177,7 +177,7 @@ function page_edit($message = '', $refresh_partials = false)
(!is_writable($instance->getDirPath()) ? '' :
span(
checkbox2('export', gps('export'), 0, 'export').
n.tag(gtxt('export_to_disk'), 'label', array('for' => 'export'))
n.tag(gTxt('export_to_disk'), 'label', array('for' => 'export'))
, array('class' => 'txp-save-export'))
).n.
tag_void('input', array(
@@ -229,7 +229,7 @@ function page_edit($message = '', $refresh_partials = false)
)
);
// Pages code columm.
// Pages code column.
echo n.tag(
form(
$actions.
@@ -933,7 +933,7 @@ function safe_row($things, $table, $where, $debug = false)
* @param string $table The table
* @param string $where The where clause
* @param bool $debug Dump query
* @return array Returns an empty array if no mathes are found
* @return array Returns an empty array if no matches are found
* @see safe_row()
* @see safe_rows_start()
* @uses getRows()
@@ -964,7 +964,7 @@ function safe_rows($things, $table, $where, $debug = false)
* @param string $table The table
* @param string $where The where clause
* @param bool $debug Dump query
* @return resource|bool A result resouce or FALSE on error
* @return resource|bool A result resource or FALSE on error
* @see nextRow()
* @see numRows()
* @example
@@ -1121,7 +1121,7 @@ function getRows($query, $debug = false)
/**
* Executes an SQL statement and returns results.
*
* This function is indentical to safe_query() apart from the missing
* This function is identical to safe_query() apart from the missing
* $unbuf argument.
*
* @param string $query The SQL statement to execute
@@ -644,7 +644,7 @@ function type_options($array)
}
/**
* Generates a list of radio buttons wrapped in a unordered list.
* Generates a list of radio buttons wrapped in an unordered list.
*
* @param string $name The field
* @param array $values The values as an array array( $value => $label )
@@ -644,7 +644,7 @@ function wrapGroup($id, $content, $label, $class = '', $help = '')
* @param string $align HTML align attribute
* @param string $class HTML class attribute
* @param int $p HTML cellpadding attribute
* @param int $w HTML width atttribute
* @param int $w HTML width attribute
* @return string HTML
* @example
* startTable().
@@ -1150,7 +1150,7 @@ function small($item, $atts = '')
* Renders a table data row from an array of content => width pairs.
*
* @param array $array Array of content => width pairs
* @param string|array $atts Table row atrributes
* @param string|array $atts Table row attributes
* @return string A HTML table row
*/
@@ -1186,7 +1186,7 @@ function assHead()
}
/**
* Renders the ubiquitious popup help button.
* Renders the ubiquitous popup help button.
*
* The rendered link can be customised via a 'admin_help > {$help_var}'
* pluggable UI callback event.
@@ -1270,7 +1270,7 @@ function fieldHelp($help_var)
}
/**
* Renders the ubiquitious popup help button with a little less visual noise.
* Renders the ubiquitous popup help button with a little less visual noise.
*
* The rendered link can be customised via a 'admin_help > {$help_var}'
* pluggable UI callback event.
@@ -680,7 +680,7 @@ function require_privs($res = null, $user = '')
}
/**
* Adds dynamic priviledges.
* Adds dynamic privileges.
*
* @param array $pluggable The array, see global $txp_options
* @since 4.7.2
@@ -1885,7 +1885,7 @@ function load_plugins($type = false)
}
/**
* Attachs a handler to a callback event.
* Attaches a handler to a callback event.
*
* @param callback $func The callback function
* @param string $event The callback event
@@ -4913,7 +4913,7 @@ function remove_pref($name = null, $event = null, $user_name = null)
*
* Searches for matching preference strings based on the given arguments.
*
* The $user_name argument can be used to limit the search to a specifc user,
* The $user_name argument can be used to limit the search to a specific user,
* or to global and private strings. If NULL, matches are searched from both
* private and global strings.
*
@@ -5158,8 +5158,8 @@ function getCustomFields()
* Build a query qualifier to filter non-matching custom fields from the
* result set.
*
* @param array $custom An array of 'custom_field_name' => field_number tupels
* @param array $pairs Filter criteria: An array of 'name' => value tupels
* @param array $custom An array of 'custom_field_name' => field_number tuples
* @param array $pairs Filter criteria: An array of 'name' => value tuples
* @return bool|string An SQL qualifier for a query's 'WHERE' part
* @package CustomField
*/
@@ -6320,7 +6320,7 @@ function pager($total, $limit, $page)
* Word-wrap a string using a zero width space.
*
* @param string $text The input string
* @param int $width Target line lenght
* @param int $width Target line length
* @param string $break Is not used
* @return string
*/
@@ -6366,7 +6366,7 @@ function strip_prefix($str, $pfx)
/**
* Sends an XML envelope.
*
* Wraps an array of name => value tupels into an XML envelope, supports one
* Wraps an array of name => value tuples into an XML envelope, supports one
* level of nested arrays at most.
*
* @param array $response
@@ -7013,7 +7013,7 @@ function get_files_content($dir, $ext)
/**
* Get Theme prefs
* Now Textpatern does not support themes. If the setup folder is deleted, it will return an empty array.
* Now Textpattern does not support themes. If the setup folder is deleted, it will return an empty array.
*/
function get_prefs_theme()
@@ -67,7 +67,7 @@ function filterFrontPage()
* Keeps all article tag-related values in one place, in order to do easy
* bugfixing and ease the addition of new article tags.
*
* @param array $rs An article as an assocative array
* @param array $rs An article as an associative array
* @example
* if ($rs = safe_rows_start("*,
* UNIX_TIMESTAMP(Posted) AS uPosted,
@@ -108,7 +108,7 @@ function populateArticleData($rs)
* Convenience for those who prefer doing conversion in application end instead
* of in the SQL statement.
*
* @param array $rs An article as an assocative array
* @param array $rs An article as an associative array
* @example
* article_format_info(
* safe_row('*', 'textpattern', 'Status = 4 LIMIT 1')
Oops, something went wrong.

0 comments on commit 573cf20

Please sign in to comment.
You can’t perform that action at this time.