Commit 26711eeb by pupi1985

Simple readability change in the adsense plugin.

parent 2b4c4d5b
...@@ -34,18 +34,7 @@ ...@@ -34,18 +34,7 @@
function allow_region($region) function allow_region($region)
{ {
$allow=false; return in_array($region, array('main', 'side', 'full'));
switch ($region)
{
case 'main':
case 'side':
case 'full':
$allow=true;
break;
}
return $allow;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment