Skip to content
Snippets Groups Projects
Commit 3bfb4bb1 authored by Robert Neve's avatar Robert Neve Committed by Bram Goffings
Browse files

Issue #2385835 by Daemon_Byte: Adding 'theme_hook_original' triggers PHP...

Issue #2385835 by Daemon_Byte: Adding 'theme_hook_original' triggers PHP warning in theme_ds_search_page
parent 14d8e72c
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,10 @@ function ds_search_theme() {
* Search page theming.
*/
function theme_ds_search_page($build) {
// fix for Drupal 7.33+
if(isset($build['theme_hook_original'])) {
unset($build['theme_hook_original']);
}
// Check on empty search results.
if (empty($build['search_results'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment