uppdated modules
This commit is contained in:
Executable → Regular
@@ -220,8 +220,13 @@ class views_php_handler_field extends views_handler_field {
|
||||
$value = ob_get_clean();
|
||||
}
|
||||
else {
|
||||
$value = check_plain($values->{$this->field_alias});
|
||||
if (isset($values->{$this->field_alias})) {
|
||||
$value = check_plain($values->{$this->field_alias});
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($value)) {
|
||||
return $value;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ files[] = plugins/views/views_php_plugin_pager.inc
|
||||
files[] = plugins/views/views_php_plugin_query.inc
|
||||
files[] = plugins/views/views_php_plugin_wrapper.inc
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-01-24
|
||||
version = "7.x-1.0-alpha1"
|
||||
; Information added by Drupal.org packaging script on 2015-11-13
|
||||
version = "7.x-1.0-alpha3"
|
||||
core = "7.x"
|
||||
project = "views_php"
|
||||
datestamp = "1390577427"
|
||||
datestamp = "1447386022"
|
||||
|
||||
|
||||
@@ -148,3 +148,13 @@ function views_php_views_post_execute($view) {
|
||||
$view->query->php_unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_post_build().
|
||||
*/
|
||||
function views_php_views_post_build($view) {
|
||||
// Clear the limit and offset
|
||||
if (!empty($view->views_php) && !empty($view->build_info['query']) && is_object($view->build_info['query'])) {
|
||||
$view->build_info['query']->range();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user