Skip to content

Instantly share code, notes, and snippets.

@rvsjoen
rvsjoen / install.php
Created November 2, 2011 19:27
Automatic extension installation
<?php
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}
if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname(__FILE__));
@rvsjoen
rvsjoen / infiniteloop.patch
Created October 30, 2011 21:03
Infinite loop bug
diff --git index.php index.php
diff --git libraries/joomla/application/application.php libraries/joomla/application/application.php
index 9faf1ff..710ed45 100644
--- libraries/joomla/application/application.php
+++ libraries/joomla/application/application.php
@@ -196,6 +196,9 @@ class JApplication extends JObject
{
jimport('joomla.plugin.helper');
+ // If we get this far, we can enable the custom error page handler