Skip to content

Commit

Permalink
Initialize repo
Browse files Browse the repository at this point in the history
Seed repo with joomla/joomla-platform@f1dfc46 and CMS libraries from joomla/joomla-cms@01087b7
  • Loading branch information
Michael Babker committed Oct 6, 2012
0 parents commit 0d24a4d
Show file tree
Hide file tree
Showing 675 changed files with 200,768 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
# IDE based files and folders #
.buildpath
.project
.settings
.DS_Store
.idea

# Files that should not be pushed to the repo #
/configuration.php
47 changes: 47 additions & 0 deletions libraries/cms.php
@@ -0,0 +1,47 @@
<?php
/**
* @package Joomla.Libraries
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

defined('_JEXEC') or die;

// Set the platform root path as a constant if necessary.
if (!defined('JPATH_PLATFORM'))
{
define('JPATH_PLATFORM', __DIR__);
}

// Import the library loader if necessary.
if (!class_exists('JLoader'))
{
require_once JPATH_PLATFORM . '/loader.php';
}

class_exists('JLoader') or die;

// Register the library base path for CMS libraries.
JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms');

// Register a handler for uncaught exceptions that shows a pretty error page when possible
set_exception_handler(array('JErrorPage', 'render'));

// Define the Joomla version if not already defined.
if (!defined('JVERSION'))
{
$jversion = new JVersion;
define('JVERSION', $jversion->getShortVersion());
}

// Set up the message queue logger for web requests
if (array_key_exists('REQUEST_METHOD', $_SERVER))
{
JLog::addLogger(array('logger' => 'messagequeue'), JLog::ALL, array('jerror'));
}

// Register classes where the names have been changed to fit the autoloader rules
// @deprecated 4.0
JLoader::register('JToolBar', JPATH_PLATFORM . '/cms/toolbar/toolbar.php');
JLoader::register('JButton', JPATH_PLATFORM . '/cms/toolbar/button.php');

0 comments on commit 0d24a4d

Please sign in to comment.