summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-02-05 20:05:55 +0100
committerHarald Eilertsen <haraldei@anduin.net>2021-02-05 20:05:55 +0100
commit3424c7a12cbe9f2f87832ff90229bb3094744c1d (patch)
treeac2e22f7208e7901d0e96f2131b2cbed1d402ca4
parent26f6e2e21997b329239bb321b1cea0c948ef1a95 (diff)
downloadgigologadmin-3424c7a12cbe9f2f87832ff90229bb3094744c1d.tar.gz
gigologadmin-3424c7a12cbe9f2f87832ff90229bb3094744c1d.tar.bz2
gigologadmin-3424c7a12cbe9f2f87832ff90229bb3094744c1d.zip
Return output of shortcode.
The result of shortcodes should return any output they want on the page, not call echo. There's still a few calls to echo in the giglog_photographers code, but we'll deal with them later.
-rw-r--r--includes/public/shortcodes/giglog_photographers.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/public/shortcodes/giglog_photographers.php b/includes/public/shortcodes/giglog_photographers.php
index 4886a8c..cedfd13 100644
--- a/includes/public/shortcodes/giglog_photographers.php
+++ b/includes/public/shortcodes/giglog_photographers.php
@@ -362,6 +362,8 @@ function giglogadmin_getconcertsphotog ( ) {
function giglogadmin_photographers()
{
- echo(giglogadmin_getfiltersphotog());
- echo (giglogadmin_getconcertsphotog() );
+ $output = giglogadmin_getfiltersphotog();
+ $output .= giglogadmin_getconcertsphotog();
+
+ return $output;
}