22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
23 */ |
23 */ |
24 |
24 |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
26 |
26 |
27 $plugins->attachHook('session_started', ' |
27 $plugins->attachHook('session_started', 'SpecialRecentChanges_paths_init();'); |
|
28 |
|
29 function SpecialRecentChanges_paths_init() |
|
30 { |
28 global $paths; |
31 global $paths; |
29 $paths->add_page(Array( |
32 $paths->add_page(Array( |
30 \'name\'=>\'specialpage_recent_changes\', |
33 'name'=>'specialpage_recent_changes', |
31 \'urlname\'=>\'RecentChanges\', |
34 'urlname'=>'RecentChanges', |
32 \'namespace\'=>\'Special\', |
35 'namespace'=>'Special', |
33 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
36 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
34 )); |
37 )); |
35 '); |
38 } |
36 |
39 |
37 function page_Special_RecentChanges() |
40 function page_Special_RecentChanges() |
38 { |
41 { |
39 global $db, $session, $paths, $template, $plugins; // Common objects |
42 global $db, $session, $paths, $template, $plugins; // Common objects |
40 global $lang; |
43 global $lang; |