Skip to content

Commit

Permalink
Merge pull request #9 from laytoneverson/declair-debugbar_log-functio…
Browse files Browse the repository at this point in the history
…n-once

Check function_exists before declairing debugbar_log() function.
  • Loading branch information
snapshotpl committed Apr 12, 2016
2 parents c87166e + c78040f commit 16648ea
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/ZfSnapPhpDebugBar/Functions.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/**
* @param string $message
* @param string $type
*/
function debugbar_log($message, $type = 'debug')
{
\ZfSnapPhpDebugBar\Module::log($message, $type);
if (!function_exists('debugbar_log')) {
/**
* @param string $message
* @param string $type
*/
function debugbar_log($message, $type = 'debug')
{
\ZfSnapPhpDebugBar\Module::log($message, $type);
}
}

0 comments on commit 16648ea

Please sign in to comment.