PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/contentmanager/code/trunk/administrator/components/com_contentmanager/libraries/jxtended.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 33 lines | 14 code | 4 blank | 15 comment | 3 complexity | 4df34df1549585fb83d95f91a264ca9a MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: jxtended.php 160 2009-07-09 00:06:09Z eddieajau $
  4. * @package JXtended.Libraries
  5. * @subpackage plgSystemJXtended
  6. * @copyright Copyright (C) 2008 - 2009 JXtended, LLC. All rights reserved.
  7. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  8. * @link http://jxtended.com
  9. */
  10. defined('JPATH_BASE') or die;
  11. /**
  12. * JXtended intelligent file importer.
  13. *
  14. * @param string $path A dot syntax path.
  15. * @return boolean True on success
  16. * @since 1.0
  17. */
  18. function jximport2($path)
  19. {
  20. static $base;
  21. if (!$base) {
  22. $base = realpath(dirname(__FILE__));
  23. }
  24. if (strpos($path, 'jxtended') === 0) {
  25. return JLoader::import($path, $base, '');
  26. } else {
  27. return JLoader::import($path, null, 'libraries.');
  28. }
  29. }