public
Description: Add jQuery to Frog CMS admin interface.
Homepage: http://www.appelsiini.net/
Clone URL: git://github.com/tuupola/frog_jquery.git
frog_jquery / enable.php
100644 26 lines (21 sloc) 0.538 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
 
/*
* jQuery - Add jQuery to Frog CMS admin interface.
*
* Copyright (c) 2008-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/
*
*/
 
/* Prevent direct access. */
if (!defined("FRAMEWORK_STARTING_MICROTIME")) {
    die("All your base are belong to us!");
}
 
/* Force jQuery to be the first plugin. */
unset(Plugin::$plugins['jquery']);
Plugin::$plugins = array('jquery' => 1) + Plugin::$plugins;
Plugin::save();