| Revision 23600,
1.0 KB
checked in by kimoto, 12 years ago
(diff) |
#2609 モジュールのバグfix
XML_Util 1.2.3
Mobile_Detect 2.8.3
Cache_Lite 1.7.16
Archive_Tar 1.3.12
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * Little piece of PHP to make Mobile_Detect auto-loadable in PSR-0 compatible PHP autoloaders like |
|---|
| 4 | * the Symfony Universal ClassLoader by Fabien Potencier. Since PSR-0 handles an underscore in |
|---|
| 5 | * classnames (on the filesystem) as a slash, "Mobile_Detect.php" autoloaders will try to convert |
|---|
| 6 | * the classname and path to "Mobile\Detect.php". This script will ensure autoloading with: |
|---|
| 7 | * - Namespace: Detection |
|---|
| 8 | * - Classname: MobileDetect |
|---|
| 9 | * - Namespased: \Detection\MobileDetect |
|---|
| 10 | * - Autoload path: ./namespaced |
|---|
| 11 | * - Converted path: ./namespaced/Detection/MobileDetect.php |
|---|
| 12 | * |
|---|
| 13 | * Don't forget to use MobileDetect (instead of Mobile_Detect) as class in code when autoloading. |
|---|
| 14 | * |
|---|
| 15 | * Thanks to @WietseWind. |
|---|
| 16 | * For details please check: https://github.com/serbanghita/Mobile-Detect/pull/120 |
|---|
| 17 | */ |
|---|
| 18 | |
|---|
| 19 | namespace Detection; |
|---|
| 20 | require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Mobile_Detect.php'; |
|---|
| 21 | |
|---|
| 22 | class MobileDetect extends \Mobile_Detect {} |
|---|
Note: See
TracBrowser
for help on using the repository browser.