equal
deleted
inserted
replaced
855 { |
855 { |
856 global $db, $session, $paths, $template, $plugins; // Common objects |
856 global $db, $session, $paths, $template, $plugins; // Common objects |
857 |
857 |
858 $page_id = $db->escape(sanitize_page_id($page_id)); |
858 $page_id = $db->escape(sanitize_page_id($page_id)); |
859 if ( !isset($this->nslist[$namespace]) ) |
859 if ( !isset($this->nslist[$namespace]) ) |
860 die('$paths->get_page_groups(): HACKING ATTEMPT'); |
860 die('$paths->get_page_groups(): HACKING ATTEMPT: namespace "'. htmlspecialchars($namespace) .'" doesn\'t exist'); |
861 |
861 |
862 $group_list = array(); |
862 $group_list = array(); |
863 |
863 |
864 // What linked categories have this page? |
864 // What linked categories have this page? |
865 $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g |
865 $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g |