PageRenderTime 31ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/src/administrator/components/com_application/aliases.php

https://github.com/bhar1red/anahita
PHP | 22 lines | 7 code | 4 blank | 11 comment | 0 complexity | 3ee9af42d931880c38d064fcefd4a43e MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * LICENSE: ##LICENSE##
  4. *
  5. * @category Anahita
  6. * @author Arash Sanieyan <ash@anahitapolis.com>
  7. * @author Rastin Mehr <rastin@anahitapolis.com>
  8. * @copyright 2008 - 2010 rmdStudio Inc./Peerglobe Technology Inc
  9. * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
  10. * @version SVN: $Id: view.php 13650 2012-04-11 08:56:41Z asanieyan $
  11. * @link http://www.anahitapolis.com
  12. */
  13. $config = new JConfig();
  14. $config->cache_prefix = md5($config->secret).'-cache-system';
  15. $config->cache_enabled = $config->caching;
  16. KService::setAlias('application.registry', 'com://admin/application.registry');
  17. KService::setConfig('application.registry', array('cache_prefix'=>$config->cache_prefix,'cache_enabled'=>$config->cache_enabled));
  18. ?>