cram412 / yii-sitemapgenerator

Automatically exported from code.google.com/p/yii-sitemapgenerator
0 stars 0 forks source link

Controllers name in directory #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
If u have 2 controllers following 1 by 1 with name like mycontroller.php and 
mycontroller2.php(number in the end) there are no exceptions or something. 
Output is NULL. Delete second file and now all works good.  
Just be aware of this bug i spend many hour to find and fix it.  

Original issue reported on code.google.com by h...@optimozg.com on 21 Aug 2013 at 11:54

GoogleCodeExporter commented 8 years ago
solution:  change file SitemapGenerator.php string 196
from
if (($pos=strpos($file,'Controller'))!==false) to 
if (($pos=strpos($file,'Controller.php'))!==false) 

Original comment by h...@optimozg.com on 22 Aug 2013 at 12:02