Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
675 changed files
with
200,768 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); |
Oops, something went wrong.