Created
July 29, 2013 12:49
-
-
Save razbakov/6104097 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Check if upload place exists | |
* | |
* @access private | |
* @param upload_place string | |
* @return string | |
*/ | |
private function check_upload_place($upload_place) | |
{ | |
switch($upload_place) | |
{ | |
case "homepages": | |
return 'homepages'; | |
break; | |
case "background": | |
return 'background'; | |
break; | |
default: | |
case "listings": | |
return 'listings'; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment