public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Changed RedirectContent to allow both page alias and content_id as target

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@2733 
3d254a34-79dc-0310-9e5f-be208747d8a0
silmarillion (author)
Sun Apr 30 04:45:33 -0700 2006
commit  d0ea958650a642bc4652fe2b1ed494f7f44e943b
tree    ee51a637282e8592601d80455d13f87a2e24e895
parent  311f57ae2eaac745253daf488b71dcbf82f8bcf0
...
845
846
847
 
 
 
 
848
849
850
...
859
860
861
862
 
863
864
865
...
868
869
870
871
 
872
873
874
...
894
895
896
897
 
898
899
900
...
903
904
905
906
 
907
908
909
...
943
944
945
946
 
947
948
949
...
952
953
954
955
 
956
957
958
...
1605
1606
1607
1608
1609
 
 
1610
1611
1612
...
1616
1617
1618
1619
 
1620
1621
1622
...
1626
1627
1628
1629
 
1630
1631
1632
...
2518
2519
2520
2521
 
2522
2523
 
2524
2525
2526
...
845
846
847
848
849
850
851
852
853
854
...
863
864
865
 
866
867
868
869
...
872
873
874
 
875
876
877
878
...
898
899
900
 
901
902
903
904
...
907
908
909
 
910
911
912
913
...
947
948
949
 
950
951
952
953
...
956
957
958
 
959
960
961
962
...
1609
1610
1611
 
 
1612
1613
1614
1615
1616
...
1620
1621
1622
 
1623
1624
1625
1626
...
1630
1631
1632
 
1633
1634
1635
1636
...
2522
2523
2524
 
2525
2526
 
2527
2528
2529
2530
0
@@ -845,6 +845,10 @@ class CMSModule
0
     return FALSE;
0
   }
0
 
0
+ function IsExclusive() {
0
+ returnFALSE;
0
+ }
0
+
0
   /**
0
    * ------------------------------------------------------------------
0
    * Installation Related Functions
0
@@ -859,7 +863,7 @@ class CMSModule
0
    */
0
   function Install()
0
   {
0
- $filename = dirname(dirname(dirname(__FILE__))) .
0
+ $filename = dirname(dirname(dirname(__FILE__))) .
0
    '/modules/'.$this->GetName().'/method.install.php';
0
    if (@is_file($filename))
0
    {
0
@@ -868,7 +872,7 @@ class CMSModule
0
     $db =& $gCms->GetDb();
0
     $config =& $gCms->GetConfig();
0
     $smarty =& $gCms->GetSmarty();
0
-
0
+
0
     include($filename);
0
    }
0
    }
0
@@ -894,7 +898,7 @@ class CMSModule
0
    */
0
   function Uninstall()
0
   {
0
- $filename = dirname(dirname(dirname(__FILE__))) .
0
+ $filename = dirname(dirname(dirname(__FILE__))) .
0
    '/modules/'.$this->GetName().'/method.uninstall.php';
0
    if (@is_file($filename))
0
    {
0
@@ -903,7 +907,7 @@ class CMSModule
0
     $db =& $gCms->GetDb();
0
     $config =& $gCms->GetConfig();
0
     $smarty =& $gCms->GetSmarty();
0
-
0
+
0
     include($filename);
0
    }
0
    }
0
@@ -943,7 +947,7 @@ class CMSModule
0
    */
0
   function Upgrade($oldversion, $newversion)
0
   {
0
- $filename = dirname(dirname(dirname(__FILE__))) .
0
+ $filename = dirname(dirname(dirname(__FILE__))) .
0
    '/modules/'.$this->GetName().'/method.upgrade.php';
0
    if (@is_file($filename))
0
    {
0
@@ -952,7 +956,7 @@ class CMSModule
0
     $db =& $gCms->GetDb();
0
     $config =& $gCms->GetConfig();
0
     $smarty =& $gCms->GetSmarty();
0
-
0
+
0
     include($filename);
0
    }
0
    }
0
@@ -1605,8 +1609,8 @@ class CMSModule
0
   }
0
 
0
   /**
0
- * Called before the content is sent off to smarty for processing. Basically
0
- * overlaps with ContentPreRender, but it makes more sense to be named
0
+ * Called before the content is sent off to smarty for processing. Basically
0
+ * overlaps with ContentPreRender, but it makes more sense to be named
0
    * PreCompile.
0
    *
0
    * @param string The precompiled text
0
@@ -1616,7 +1620,7 @@ class CMSModule
0
   }
0
 
0
   /**
0
- * Called right after smarty is done processing and ready to head off to the
0
+ * Called right after smarty is done processing and ready to head off to the
0
    * cache. Does the same as PostRenderNonCached, but with a better name.
0
    *
0
    * @param string The postcompiled text
0
@@ -1626,7 +1630,7 @@ class CMSModule
0
   }
0
 
0
   /**
0
- * This serves no purpose anymore. Template, content and html blobs are
0
+ * This serves no purpose anymore. Template, content and html blobs are
0
    * never pushed together at any point and cached.
0
    *
0
    * Deprecated
0
@@ -2518,9 +2522,9 @@ class CMSModule
0
   function RedirectContent($id)
0
   {
0
     #$content = ContentManager::LoadContentFromId($id);
0
- global $gCms;
0
+ global $gCms;
0
     $manager =& $gCms->GetHierarchyManager();
0
- $node =& $manager->sureGetNodeById($id);
0
+ $node =& $manager->sureGetNodeByAlias($id);
0
     $content =& $node->GetContent();
0
     if (isset($content))
0
     {

Comments

    No one has commented yet.